This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author malin
Recipients Aaron1011, Oren Milman, ZackerySpytz, corona10, izbyshev, malin, martin.panter, nadeem.vawda, serhiy.storchaka, vstinner
Date 2021-12-20.03:23:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639970616.9.0.290451040703.issue23224@roundup.psfhosted.org>
In-reply-to
Content
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 mode works fine in my pyzstd module (A Python bindings to zstd library).
But I think very few people will encounter this problem, we can leave it.
History
Date User Action Args
2021-12-20 03:23:36malinsetrecipients: + malin, vstinner, nadeem.vawda, martin.panter, serhiy.storchaka, Aaron1011, Oren Milman, izbyshev, corona10, ZackerySpytz
2021-12-20 03:23:36malinsetmessageid: <1639970616.9.0.290451040703.issue23224@roundup.psfhosted.org>
2021-12-20 03:23:36malinlinkissue23224 messages
2021-12-20 03:23:36malincreate