[issue31779] assertion failures and a crash when using an uninitialized struct.Struct object

Alexey Izbyshev report at bugs.python.org
Sat Sep 15 18:53:38 EDT 2018


Alexey Izbyshev <izbyshev at ispras.ru> added the comment:

What are the drawbacks of moving all code from __init__ to __new__, at least in master branch (3.8)? IMO it's much more robust than playing whack-a-mole both with ref/memleaks caused by repeated calls to __init__ and absence of initialization checks in all methods.

----------
nosy: +berker.peksag, izbyshev, mark.dickinson, meador.inge, serhiy.storchaka
versions: +Python 2.7, Python 3.6, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31779>
_______________________________________


More information about the Python-bugs-list mailing list