[issue35992] Metaclasses interfere with __class_getitem__

2019-02-17 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35992] Metaclasses interfere with __class_getitem__

2019-02-17 Thread miss-islington
miss-islington added the comment: New changeset a7f929db605326da452fbdeebfe341afa9316d25 by Miss Islington (bot) in branch '3.7': bpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857) https://github.com/python/cpython/commit/a7f929db605326da452fbdeebfe341afa9316d25

[issue35992] Metaclasses interfere with __class_getitem__

2019-02-17 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset ac28147e78c45a6217d348ce90ca5281d91f676f by Ivan Levkivskyi in branch 'master': bpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857) https://github.com/python/cpython/commit/ac28147e78c45a6217d348ce90ca5281d91f676f

[issue35992] Metaclasses interfere with __class_getitem__

2019-02-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +11936 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35992] Metaclasses interfere with __class_getitem__

2019-02-14 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Yes, I think this is a bug. Created a PR with a possible simple fix. -- nosy: +gvanrossum ___ Python tracker ___

[issue35992] Metaclasses interfere with __class_getitem__

2019-02-14 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +11889 stage: -> patch review ___ Python tracker ___ ___

[issue35992] Metaclasses interfere with __class_getitem__

2019-02-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35992] Metaclasses interfere with __class_getitem__

2019-02-13 Thread Caleb Donovick
New submission from Caleb Donovick : OS: Debian testing python3 -VV: Python 3.7.2+ (default, Feb 2 2019, 14:31:48) [gcc 8.2.0] The following: ``` class Meta(type): pass class X(metaclass=Meta): def __class_getitem__(cls, key): return key X[10] ``` Results in ``` TypeError: