Message233003
| Author |
martin.panter |
| Recipients |
jamadagni, martin.panter, r.david.murray, rob.lourens, terry.reedy |
| Date |
2014年12月21日.22:17:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1419200232.83.0.396173806105.issue6294@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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()
> PYTHON
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. |
|