This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients gvanrossum, kj, levkivskyi, martinitus, rhettinger, serhiy.storchaka
Date 2021-10-25.15:42:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635176562.17.0.580136629004.issue45438@roundup.psfhosted.org>
In-reply-to
Content
I really don't recall if we even seriously considered what isinstance(list[int], type) should return. PEP 585 doesn't mention it. I presume it falls out of the way it's being tested and the way list[int] passes most attribute requests on to the origin (i.e., to list).

Given that this has returned True for two releases now I'm very reluctant to changing this now. So our best option is pursuing Serhiy's option 1, at least partially. The fix for the OP should be simple enough, right?
History
Date User Action Args
2021-10-25 15:42:42gvanrossumsetrecipients: + gvanrossum, rhettinger, serhiy.storchaka, levkivskyi, kj, martinitus
2021-10-25 15:42:42gvanrossumsetmessageid: <1635176562.17.0.580136629004.issue45438@roundup.psfhosted.org>
2021-10-25 15:42:42gvanrossumlinkissue45438 messages
2021-10-25 15:42:42gvanrossumcreate