[New-bugs-announce] [issue9534] OrderedDict.__del__ destructor throws AttributeError when process ends up with the exception trace

Valentine Gogichashvili report at bugs.python.org
Fri Aug 6 13:48:06 CEST 2010


New submission from Valentine Gogichashvili <valgog at gmail.com>:

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 <bound method OrderedDict.__del__ of OrderedDict([('key', 'value')])> 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 <report at bugs.python.org>
<http://bugs.python.org/issue9534>
_______________________________________


More information about the New-bugs-announce mailing list