[Python-Dev] PEP: Ordered Class Definition Namespace (original) (raw)
Ethan Furman ethan at stoneleaf.us
Tue Jun 7 14:01:43 EDT 2016
- Previous message (by thread): [Python-Dev] PEP: Ordered Class Definition Namespace
- Next message (by thread): [Python-Dev] PEP: Ordered Class Definition Namespace
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 06/07/2016 10:51 AM, Eric Snow wrote:
My intention was to land the patch soon, having gone through code review during PyCon. However, Nick pointed out to me the benefit of having a concrete point of reference for the change, as well as making sure it isn't a problem for other implementations. So in that spirit, here's a PEP for the change. Feedback is welcome, particularly from from other implementors.
+1
Specification =============
* types for which `_prepare_()
returned something other than_ _
OrderedDict(or a subclass) have their
_definitionorder__ _set to
None``
I assume this check happens in type.new? If a non-OrderedDict is used as the namespace, but a definition_order key and value are supplied, is it used or still set to None?
--
Ethan
- Previous message (by thread): [Python-Dev] PEP: Ordered Class Definition Namespace
- Next message (by thread): [Python-Dev] PEP: Ordered Class Definition Namespace
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]