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 daniel.urban
Recipients Arfrever, daniel.urban, ezio.melotti, flox, jcea, ncoghlan
Date 2013-03-13.17:08:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363194497.3.0.900923115646.issue17044@psf.upfronthosting.co.za>
In-reply-to
Content
I've looked into implementing the changes in the new version of the PEP. It seems, that currently type.__new__ copies the dict returned by __prepare__ (http://hg.python.org/cpython/file/55806d234653/Objects/typeobject.c#l2058). I think this means that some of the new examples wouldn't work ("Order preserving classes" and "Extending a class"). It also means, that currently it is impossible for two classes to share a namespace object (possibly this was the intention of copying the dict). So the "Note" in the PEP wouldn't be necessary (unless type.__new__ were modified).

I'm not sure if the PEP proposes to change this behavior of type.__new__ or not...
History
Date User Action Args
2013-03-13 17:08:17daniel.urbansetrecipients: + daniel.urban, jcea, ncoghlan, ezio.melotti, Arfrever, flox
2013-03-13 17:08:17daniel.urbansetmessageid: <1363194497.3.0.900923115646.issue17044@psf.upfronthosting.co.za>
2013-03-13 17:08:17daniel.urbanlinkissue17044 messages
2013-03-13 17:08:16daniel.urbancreate