diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-18 14:41:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-18 14:41:25 (GMT) |
commit | 579e985e75fd682e314c7b0cce6b1751abe8a7d0 (patch) | |
tree | 1e31ad5eb309303a81c0c7ea64d268cb429473fa /Python/future.c | |
parent | 2eff55cd46a55c1eefa8c57b6ab85655dd261fe7 (diff) | |
download | cpython-579e985e75fd682e314c7b0cce6b1751abe8a7d0.zip cpython-579e985e75fd682e314c7b0cce6b1751abe8a7d0.tar.gz cpython-579e985e75fd682e314c7b0cce6b1751abe8a7d0.tar.bz2 |
gh-89828: Do not relay the __class__ attribute in GenericAlias (GH-93754)
list[int].__class__ returned type, and isinstance(list[int], type)
returned True. It caused numerous problems in code that checks
isinstance(x, type).
(cherry picked from commit f9433fff476aa13af9cb314fcc6962055faa4085)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/future.c')
0 files changed, 0 insertions, 0 deletions