Serhiy Storchaka added the comment:

As Victor suggested in msg136939 we can use a class attribute. This technique 
is used in some other places in the stdlib (perhaps for other purposes). For 
example in subprocess.Handle.

We should check all defined __del__-s in stdlib and fix them all if they use a 
instance attribute created in __init__.

----------
nosy: +serhiy.storchaka
resolution: fixed -> 
stage: committed/rejected -> 
status: closed -> open

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

Reply via email to