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, serhiy.storchaka
Date 2020-04-16.17:11:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587057079.76.0.696067318369.issue40296@roundup.psfhosted.org>
In-reply-to
Content
Yeah, I think help() or pydoc needs to special-case this. (Didn't your other PR attempt to fix this?)

Note that issubclass(list[int].__class__, type) returns True -- the __class__ attribute in this case is taken from __origin__, while type() returns the "true" class.

I don't know what to do about __subclasses__ -- I expect we should just let it be this way.
History
Date User Action Args
2020-04-16 17:11:19gvanrossumsetrecipients: + gvanrossum, serhiy.storchaka
2020-04-16 17:11:19gvanrossumsetmessageid: <1587057079.76.0.696067318369.issue40296@roundup.psfhosted.org>
2020-04-16 17:11:19gvanrossumlinkissue40296 messages
2020-04-16 17:11:19gvanrossumcreate