This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients BNMetrics, gvanrossum, josh.r, pablogsal, pekka.klarck, rhettinger, xtreak
Date 2019-09-13.06:25:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568355943.53.0.588985037349.issue34805@roundup.psfhosted.org>
In-reply-to
Content
If there are no objections, I would like to revive this.  All we need to do is add a one-line guarantee to the docs and a test to back it up.

Except for the aberration on Py3.5, add_subclass() tracks new subclasses in the order created.  This behavior is intuitive and potentially useful.  Unless there is a compelling reason to switch the underlying container to a set object, no other reasonable implementation choice would upset the current behavior.

I think the OP's request was reasonable. For us, guaranteeing the current behavior is not a difficult thing to do.  If we don't, the alternative for the user isn't reasonable.  They would need to write a new metaclass that does almost exactly what we already do, except that they can guarantee the use of an ordered collection.  This seems silly when we already use an ordered collection but haven't made it a promise.
History
Date User Action Args
2019-09-13 06:25:43rhettingersetrecipients: + rhettinger, gvanrossum, pekka.klarck, josh.r, pablogsal, xtreak, BNMetrics
2019-09-13 06:25:43rhettingersetmessageid: <1568355943.53.0.588985037349.issue34805@roundup.psfhosted.org>
2019-09-13 06:25:43rhettingerlinkissue34805 messages
2019-09-13 06:25:43rhettingercreate