[issue36042] Setting __init_subclass__ and __class_getitem__ methods are in runtime doesnt make them class method.
Change by BTaskaya : -- keywords: +patch pull_requests: +11967 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36042> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36042] Setting __init_subclass__ and __class_getitem__ methods are in runtime doesnt make them class method.
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): ... return a, k ... >>> B.__class_getitem__ = y >>> B[int] ((,), {}) >>> B.__class_getitem__ = classmethod(y) >>> B[int] ((, ), {}) -- messages: 335985 nosy: BTaskaya priority: normal severity: normal status: open title: Setting __init_subclass__ and __class_getitem__ methods are in runtime doesnt make them class method. type: behavior ___ Python tracker <https://bugs.python.org/issue36042> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35815] Able to instantiate a subclass with abstract methods from __init_subclass__ of the ABC
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 why it is happening. Type Name: Derived Flags: 284161 Abstract: 1048576 Flags & Abstract: 0 -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue35815> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35808] Let's retire pgen
Change by BTaskaya : -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue35808> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34782] Pdb crashes when code is executed in a mapping that does not define `__contains__`
Change by BTaskaya : -- keywords: +patch, patch pull_requests: +11239, 11240 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34782> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34782] Pdb crashes when code is executed in a mapping that does not define `__contains__`
Change by BTaskaya : -- keywords: +patch pull_requests: +11239 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34782> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com