Alexey Izbyshev <> added the comment:

@inada.naoki: I don't question your change. My point is the same as in #33018 
(I've discovered that PR only after I commented). The error message is 
misleading, and it's just a coincidence that a TypeError and not some other 
error is raised when abc attempts to add a non-type object to a WeakSet.

@serhiy.storchaka: Note that an example that you requested is unlikely to be 
related to ABC and probably is more like my artificial __subclasscheck__ 
example. So, making changes just for ABC as suggested in #33018 might make 

nosy:  -jab
resolution: fixed -> 
status: closed -> open

Python tracker <>
Python-bugs-list mailing list

Reply via email to