[issue36042] Setting __init_subclass__ and __class_getitem__ methods are in runtime doesnt make them class method.

2019-02-19 Thread BTaskaya
Change by BTaskaya : -- keywords: +patch pull_requests: +11967 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36042> ___ ___ Python-

[issue36042] Setting __init_subclass__ and __class_getitem__ methods are in runtime doesnt make them class method.

2019-02-19 Thread BTaskaya
New submission from BTaskaya : CPython only makes these methods class method when a class created. If you set __class_getitem__ method after the creation it doesn't work unless you use classmethod decorator manually. >>> class B: ... pass ... >>> def y(*a, **k): .

[issue35815] Able to instantiate a subclass with abstract methods from __init_subclass__ of the ABC

2019-01-28 Thread BTaskaya
BTaskaya added the comment: I debugged object.__new__ and i saw the subclass you are trying to initalize doesn't have proper signature of abstract classes (it returns 0 from flags & Py_TPFLAGS_IS_ABSTRACT) However it has __abstractmethods__ entry. Currently i'm trying to find

[issue35808] Let's retire pgen

2019-01-28 Thread BTaskaya
Change by BTaskaya : -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue35808> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34782] Pdb crashes when code is executed in a mapping that does not define `__contains__`

2019-01-15 Thread BTaskaya
Change by BTaskaya : -- keywords: +patch, patch pull_requests: +11239, 11240 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue34782] Pdb crashes when code is executed in a mapping that does not define `__contains__`

2019-01-15 Thread BTaskaya
Change by BTaskaya : -- keywords: +patch pull_requests: +11239 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34782> ___ ___ Python-