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 adelfino
Recipients adelfino, docs@python
Date 2018-06-09.17:59:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528567160.68.0.592728768989.issue33816@psf.upfronthosting.co.za>
In-reply-to
Content
Since Python 3.6, when PEP 520 was accepted, class attribute definition order is preserved. That alone is sufficient to replace the example, but then 3.7 came with guaranteed dictionary insertion order. The metaclass example uses OrderedDict, what may cause confusing to new programmers, since it is not needed.

I'm creating this issue in case someone who actually has used metaclasses can come up with an example, but I'll try to find/think of an example myself.
History
Date User Action Args
2018-06-09 17:59:20adelfinosetrecipients: + adelfino, docs@python
2018-06-09 17:59:20adelfinosetmessageid: <1528567160.68.0.592728768989.issue33816@psf.upfronthosting.co.za>
2018-06-09 17:59:20adelfinolinkissue33816 messages
2018-06-09 17:59:20adelfinocreate