Martin Panter added the comment:

Not sure what the original method to cause this message is. I’m guessing some 
code was trying to call a function that was set to None by the shutdown 
process, causing the exception message, and that repr() was also failing, 
causing the broken wording. Like this:

$ python2 << PYTHON
> class C:
>     def __repr__(self): return None()
>     def __del__(self): None()
> x = C()
Exception TypeError: "'NoneType' object is not callable" in  ignored

If this is the case, then it is the same problem as Issue 22836, where I have 
posted a test and a fix for Python 3.

nosy: +vadmium

Python tracker <>
Python-bugs-list mailing list

Reply via email to