Message336121
I don't like complicating the code and adding a performance penalty to support such uncommon case.
The documentation for __class_getitem__ precisely describes the current behavior: "when defined in the class body, this method is implicitly a class method". Nothing should be changed here.
The documentation for __init_subclass__ could be rewritten in similar words. |
|
Date |
User |
Action |
Args |
2019-02-20 17:06:48 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, inada.naoki, levkivskyi, remi.lapeyre, BTaskaya |
2019-02-20 17:06:48 | serhiy.storchaka | set | messageid: <1550682408.63.0.606287260833.issue36042@roundup.psfhosted.org> |
2019-02-20 17:06:48 | serhiy.storchaka | link | issue36042 messages |
2019-02-20 17:06:48 | serhiy.storchaka | create | |
|