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 eric.snow
Recipients eric.snow, ncoghlan
Date 2015-05-21.17:51:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432230698.93.0.123569641809.issue24254@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a patch that drops adding __definition_order__.  You can get the same effect by adding `__definition_order__ = list(locals())` at the bottom of your class definition.  The benefit of having `__definition_order__` is that the information is automatically available for later use rather than forcing the class author to add the above line in order to benefit from external introspection/manipulation.  The downside is that every syntax-defined class will have the extra attribute with the list of definition order, which might be an unnecessary waste, even if not a huge one.

Ultimately, I'd prefer to keep `__definition_order__`.
History
Date User Action Args
2015-05-21 17:51:38eric.snowsetrecipients: + eric.snow, ncoghlan
2015-05-21 17:51:38eric.snowsetmessageid: <1432230698.93.0.123569641809.issue24254@psf.upfronthosting.co.za>
2015-05-21 17:51:38eric.snowlinkissue24254 messages
2015-05-21 17:51:38eric.snowcreate