[issue6294] Improve shutdown exception ignored message

2016-02-27 Thread Martin Panter

Changes by Martin Panter :


--
resolution:  -> duplicate
status: open -> closed
superseder:  -> Broken "Exception ignored in:" message on exceptions in __repr__
versions: +Python 3.5, Python 3.6 -Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6294] Improve shutdown exception ignored message

2014-12-21 Thread Martin Panter

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()
 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.

--
nosy: +vadmium

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6294
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6294] Improve shutdown exception ignored message

2013-05-19 Thread Shriramana Sharma

Changes by Shriramana Sharma samj...@gmail.com:


--
nosy: +jamadagni

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6294
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6294] Improve shutdown exception ignored message

2011-02-06 Thread Rob Lourens

Rob Lourens roblour...@gmail.com added the comment:

I agree with R. David Murray's suggestions, and have implemented it in the 
attached patch.

--
keywords: +patch
nosy: +rob.lourens
Added file: http://bugs.python.org/file20707/errors.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6294
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6294] Improve shutdown exception ignored message

2009-06-17 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

I should have said 3.1.1.  Ie, would this be a bug fix or really a new
feature that has to wait.  Moot until someone does a patch.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6294
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6294] Improve shutdown exception ignored message

2009-06-17 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Ah, in that case then yes, the message bug can be fixed in 3.1.1 and
2.6.3.  As for the message format, the format of messages is not
considered part of the Python API, but changes to message formats can
nonetheless cause compatibility issues that would argue for not
backporting. However, because this is a message you can't even trap it
should be completely safe to change it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6294
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6294] Improve shutdown exception ignored message

2009-06-16 Thread Terry J. Reedy

New submission from Terry J. Reedy tjre...@udel.edu:

When (at least sometimes) exceptions occur during shutdown, warnings
like the following appear:
Exception TypeError: 'NoneType' object is not callable in  ignored

This is apparently meant to be read as 
Exception TypeError: 'NoneType' object is not callable in ...
[was] ignored

instead of, for instance
Exception TypeError: 'NoneType' object is not callable in ignored

Even when parsed correctly, it is a bit mysterious (who/what ignored the
exception?) to one not in the know and has generated more than one
python-list thread.

Suggestion (from John Machin): reword to something like

Shutdown ignored this exception: TypeError: 'NoneType' object is not
callable

This would tell people that they might need to find out more about the
shutdown process.

Would it be permissible to change this in 3.1?

--
keywords: easy
messages: 89441
nosy: tjreedy
severity: normal
status: open
title: Improve shutdown exception ignored message
type: feature request
versions: Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6294
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6294] Improve shutdown exception ignored message

2009-06-16 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Since 3.1 is in final release candidate, a change like this is not
appropriate for 3.1.

This error message is generated in PyErr_WriteUnraisable, which is
called from many contexts, including __del__ methods. A __del__ method
called during shutdown is most likely what is generating the error you
are speaking of, but as far as I know the __del__ method has no way to
know that it is being called during shutdown in particular.  So the
proposed fix to the message won't work.

The reason this message is so mysterious is that in this particular case
there is additional information that normally appears in the message
that has apparently also been nullified during shutdown and that token
is simply omitted.  This appears to be a bug, since the code substitutes
unknown for other elements that are substituted into the message if
they are NULL, but does not do so for the object passed in to the
subroutine.  Either the fact that the object prints as the empty string
is a bug, or unknown should be substituted for it.  With that bug
fixed, the message would read:

   Exception TypeError: 'NoneType' object is not callable in unknown
ignored

which is more easily parsed correctly.  As long as we're mucking about
in that code, though, perhaps a more generic reformatting of the message
would be clearer even with that bug fixed. I suggest:

   The following Exception of type TypeError was raised in unknown but
was ignored: 'NoneType' object is not callable

--
components: +Interpreter Core
nosy: +r.david.murray
priority:  - low
stage:  - test needed
type: feature request - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6294
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com