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 pitrou
Recipients ajaksu2, isterika, jbrouwers, perrygreenfield, pitrou, stutzbach
Date 2010-04-28.10:10:42
SpamBayes Score 0.015257229
Marked as misclassified No
Message-id <1272449579.3485.1.camel@localhost>
In-reply-to <1272413377.85.0.0220688181286.issue808164@psf.upfronthosting.co.za>
Content
> Unfortunately, that can result in ugly error messages when the
> interpreter is exiting.

The classical solution is to early bind the necessary globals to
argument defaults, such as:

    def __del__(self, _socketclose=_socketclose):
        _socketclose(self._socket)
History
Date User Action Args
2010-04-28 10:10:45pitrousetrecipients: + pitrou, jbrouwers, perrygreenfield, ajaksu2, stutzbach, isterika
2010-04-28 10:10:42pitroulinkissue808164 messages
2010-04-28 10:10:42pitroucreate