Antoine Pitrou <pit...@free.fr> added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue808164>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to