[issue23224] LZMADecompressor object is only initialized in __init__

Serhiy Storchaka report at bugs.python.org
Fri Dec 2 15:07:54 EST 2016


Serhiy Storchaka added the comment:

This is not the only issue. Calling __init__ multiple times causes leaking locks, bz2/lzma internal buffers, etc.

It looks to me that the most straightforward way is using __new__ instead of __init__.

----------
versions: +Python 3.6, Python 3.7 -Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23224>
_______________________________________


More information about the Python-bugs-list mailing list