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 izbyshev
Recipients izbyshev, levkivskyi, methane, serhiy.storchaka
Date 2018-03-05.17:01:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520269307.47.0.467229070634.issue32999@psf.upfronthosting.co.za>
In-reply-to
Content
> Is there any sense in accepting non-types as the first argument of issubclass()?

No, though it is not (clearly) documented. The docs mention TypeError, but only for the second argument if my reading is correct.

In practice, issubclass() raises a TypeError if the first argument is not a class object:

>>> issubclass(1, int)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: issubclass() arg 1 must be a class

Though, as I mentioned above, behavior for ABCs was always weird.
History
Date User Action Args
2018-03-05 17:01:47izbyshevsetrecipients: + izbyshev, methane, serhiy.storchaka, levkivskyi
2018-03-05 17:01:47izbyshevsetmessageid: <1520269307.47.0.467229070634.issue32999@psf.upfronthosting.co.za>
2018-03-05 17:01:47izbyshevlinkissue32999 messages
2018-03-05 17:01:47izbyshevcreate