[Python-Dev] PEP 468 (original) (raw)
Ethan Furman ethan at stoneleaf.us
Mon Jun 13 12:34:07 EDT 2016
- Previous message (by thread): [Python-Dev] PEP 468
- Next message (by thread): [Python-Dev] PEP 468
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 06/10/2016 02:13 PM, Franklin? Lee wrote:
P.S.: If anyone is missing the relevance, Raymond Hettinger's compact dicts are inherently ordered until a delitem happens.[1] That could be "good enough" for many purposes, including kwargs and class definition.
It would be great for kwargs, but not for class definition: del's can happen there, so we need PEP 520 with OrderedDict so the definition order is not lost when an item is deleted during class creation.
--
Ethan
- Previous message (by thread): [Python-Dev] PEP 468
- Next message (by thread): [Python-Dev] PEP 468
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]