[issue33816] New metaclass example for Data Model topic

2018-11-16 Thread miss-islington
miss-islington added the comment: New changeset 46fa7a60e08fc7486ecab726af93fa2cfe225305 by Miss Islington (bot) in branch '3.6': bpo-33816: Remove outdated metaclass example (GH-7566) https://github.com/python/cpython/commit/46fa7a60e08fc7486ecab726af93fa2cfe225305 --

[issue33816] New metaclass example for Data Model topic

2018-11-16 Thread miss-islington
miss-islington added the comment: New changeset 1b80a373d104480c51cacb8b07ec3b61e21d5fa0 by Miss Islington (bot) in branch '3.7': bpo-33816: Remove outdated metaclass example (GH-7566) https://github.com/python/cpython/commit/1b80a373d104480c51cacb8b07ec3b61e21d5fa0 -- nosy: +miss-i

[issue33816] New metaclass example for Data Model topic

2018-11-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +9816 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33816] New metaclass example for Data Model topic

2018-11-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +9817 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33816] New metaclass example for Data Model topic

2018-11-16 Thread INADA Naoki
INADA Naoki added the comment: New changeset c2ccac7b9f9a1132ca36255b0ddfeecef4371aa3 by INADA Naoki (Andrés Delfino) in branch 'master': bpo-33816: Remove outdated metaclass example (GH-7566) https://github.com/python/cpython/commit/c2ccac7b9f9a1132ca36255b0ddfeecef4371aa3 -- nosy:

[issue33816] New metaclass example for Data Model topic

2018-06-09 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +7197 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue33816] New metaclass example for Data Model topic

2018-06-09 Thread Andrés Delfino
Andrés Delfino added the comment: To what section are you refering by "the entire section"? On a side note: I'll make a PR to remove the example. IMHO, there should be an example to give some idea of what a metaclass can do, but the current example is no longer useful and it's confusing becau

[issue33816] New metaclass example for Data Model topic

2018-06-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Probably, the entire section with the OrderedClass example should be removed. Once class dicts became ordered by default, the __prepare__ attribute lost its principal motivating use case. -- nosy: +rhettinger

[issue33816] New metaclass example for Data Model topic

2018-06-09 Thread Andrés Delfino
Andrés Delfino added the comment: I'm talking about the example in Data Model, 3.3.3.6. -- ___ Python tracker ___ ___ Python-bugs-li

[issue33816] New metaclass example for Data Model topic

2018-06-09 Thread Andrés Delfino
New submission from Andrés Delfino : 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