Message313269
> 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. |
|
Date |
User |
Action |
Args |
2018-03-05 17:01:47 | izbyshev | set | recipients:
+ izbyshev, methane, serhiy.storchaka, levkivskyi |
2018-03-05 17:01:47 | izbyshev | set | messageid: <1520269307.47.0.467229070634.issue32999@psf.upfronthosting.co.za> |
2018-03-05 17:01:47 | izbyshev | link | issue32999 messages |
2018-03-05 17:01:47 | izbyshev | create | |
|