[issue23224] bz2/lzma: Compressor/Decompressor objects are only initialized in __init__

2021-12-19 Thread Ma Lin
Ma Lin added the comment: These can be done in .__new__() method: - create thread lock - create (de)?compression context - initialize (de)?compressor states In .__init__() method, only set (de)?compression parameters. And prevent .__init__() method from being called multiple times. This

[issue23224] bz2/lzma: Compressor/Decompressor objects are only initialized in __init__

2021-12-19 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue23224] bz2/lzma: Compressor/Decompressor objects are only initialized in __init__

2020-04-07 Thread Dong-hee Na
Dong-hee Na added the comment: The issue is not solved yet. @ZackerySpytz would you like to finalize this issue? -- ___ Python tracker ___

[issue23224] bz2/lzma: Compressor/Decompressor objects are only initialized in __init__

2020-04-07 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23224] bz2/lzma: Compressor/Decompressor objects are only initialized in __init__

2020-04-07 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.9 -Python 2.7, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23224] bz2/lzma: Compressor/Decompressor objects are only initialized in __init__

2018-09-18 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: bz2 in 2.7 is also affected. Victor, do we want to fix the crash at all in stable branches? If yes, IMHO taking the slight risk of __init__ -> __new__ change is preferable to taking the trouble to implement the alternative backwards-compatible fix (init