This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients flox, gz, python-dev, vinay.sajip, xdegaye
Date 2013-01-15.23:08:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1358291311.0.0.57138795794.issue9501@psf.upfronthosting.co.za>
In-reply-to
Content
The reason why this happens in python 3.3.0 and not in 3.2:

1) lastResort holds a reference to an instance of _StderrHandler at
   module tear down, thus potentially triggering a TypeError in
   _removeHandlerRef.

2) The logging code has the following two lines that are meant to
   avoid the occurence of this problem:

    _defaultLastResort = _StderrHandler(WARNING)
    lastResort = _defaultLastResort

Issue 12637 describes another unrelated problem with lastResort in
python 3.2. As a workaround to this issue 12637, my application sets
lastResort to None and this works fine in 3.2 (the logging howto
states 'To obtain the pre-3.2 behaviour, logging.lastResort can be set
to None').  With python 3.3 it is this setting of lastResort to None
that causes these spurious 'exception ignored' messages, after
removing this setting no messages are printed anymore.
History
Date User Action Args
2013-01-15 23:08:31xdegayesetrecipients: + xdegaye, vinay.sajip, flox, gz, python-dev
2013-01-15 23:08:31xdegayesetmessageid: <1358291311.0.0.57138795794.issue9501@psf.upfronthosting.co.za>
2013-01-15 23:08:30xdegayelinkissue9501 messages
2013-01-15 23:08:30xdegayecreate