Closed s3v- closed 1 year ago
Hi, I added the following ~fix~ workaround for python3.11 on Debian salsa; also uploaded.
Hope this helps, Étienne.
Thanks for the report. We're planning some maintenance on apptools in the near-ish future, and that will include getting things back to working on Python 3.11.
For reference, the relevant change in CPython was this one: https://github.com/python/cpython/pull/2821
Some tests start failing with Python 3.11. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027503
Please note that every pyckable object has __getstate method in Python 3.11 [https://docs.python.org/3/library/pickle.html#object.\_\_getstate\_\_](https://docs.python.org/3/library/pickle.html#object.getstate__) As a consequence, "else" statement is never hitted in this cycle: https://github.com/enthought/apptools/blob/127fe9fe293c49c8a6626101bc3cf0684e163bf8/apptools/persistence/state_pickler.py#L395-L401
Kind Regards