[issue9524] CTRL_C_EVENT and CTRL_BREAK_EVENT cannot be registered by signal.signal() method on windows
New submission from Valentine Gogichashvili : When executing the following code on Windows 7 64-bit :: import sys import signal import time print 'Version:' print sys.executable or sys.platform, sys.version print print def h(s, f): print s signal.signal(signal.CTRL_BREAK_EVENT, h) we get the following output:: Version: C:\Python27\python.exe 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] Traceback (most recent call last): File "signal_ctrl_break_event.py", line 14, in signal.signal(signal.CTRL_BREAK_EVENT, h) RuntimeError: (0, 'Error') When trying to register a handler for a signal.CTRL_C_EVENT the exception is as follows:: File "signal_ctrl_c_event.py", line 6, in signal.signal(signal.CTRL_C_EVENT, h) ValueError: signal number out of range -- components: Library (Lib), Windows messages: 113005 nosy: valgog priority: normal severity: normal status: open title: CTRL_C_EVENT and CTRL_BREAK_EVENT cannot be registered by signal.signal() method on windows type: behavior versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue9524> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9534] OrderedDict.__del__ destructor throws AttributeError when process ends up with the exception trace
New submission from Valentine Gogichashvili : When the process is dying with the exception trace dump, I am getting the following notification from the destructor of the OrderedDict class:: Exception AttributeError: "'NoneType' object has no attribute 'print_exc'" in ignored In the source of the OrderedDict the only operation that is not included in the try..catch is the dict.clear(self) actually. So I suppose that this problem is in dict.clear() implementation... -- components: Library (Lib), Windows messages: 113096 nosy: valgog priority: normal severity: normal status: open title: OrderedDict.__del__ destructor throws AttributeError when process ends up with the exception trace type: behavior versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue9534> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9534] OrderedDict.__del__ destructor throws AttributeError when process ends up with the exception trace
Valentine Gogichashvili added the comment: Unfortunately I do not have a short script. It is happening during the failure in quite a big script. I am afraid, it will too time consuming for me to write it... Actually by the content of the OrderdDict instance that is throwing this exception it seems like it is the one, that is used by ConfigParser internally. -- ___ Python tracker <http://bugs.python.org/issue9534> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com