Message319166
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. |
|
Date |
User |
Action |
Args |
2018-06-09 17:59:20 | adelfino | set | recipients:
+ adelfino, docs@python |
2018-06-09 17:59:20 | adelfino | set | messageid: <1528567160.68.0.592728768989.issue33816@psf.upfronthosting.co.za> |
2018-06-09 17:59:20 | adelfino | link | issue33816 messages |
2018-06-09 17:59:20 | adelfino | create | |
|