Closed Almenon closed 1 year ago
The following tests fail locally:
test_arepl_dump_not_in_modules
test_file_IO
test_builtinImportDeleted
test_pipImportDeleted
3.11 changelog: https://docs.python.org/3/whatsnew/3.11.html
Relevant changes:
https://docs.python.org/3/whatsnew/3.11.html#pep-657-fine-grained-error-locations-in-tracebacks
"Added object.getstate(), which provides the default implementation of the getstate() method. copying and pickleing instances of subclasses of builtin types bytearray, set, frozenset, collections.OrderedDict, collections.deque, weakref.WeakSet, and datetime.tzinfo now copies and pickles instance attributes implemented as slots. (Contributed by Serhiy Storchaka in bpo-26579.)"
When an active exception is re-raised by a raise statement with no parameters, the traceback attached to this exception is now always sys.exc_info()[1].traceback. This means that changes made to the traceback in the current except clause are reflected in the re-raised exception. (Contributed by Irit Katriel in bpo-45711.)
The interpreter state’s representation of handled exceptions (aka exc_info or _PyErr_StackItem) now only has the exc_value field; exc_type and exc_traceback have been removed, as they can be derived from exc_value. (Contributed by Irit Katriel in bpo-45711.)
"Change the frame-related functions in the inspect module to return new FrameInfo and Traceback class instances (backwards compatible with the previous named tuple-like interfaces) that includes the extended PEP 657 position information (end line number, column and end column). The affected functions are:
Jsonpickle has some 3.11 related changes: https://github.com/jsonpickle/jsonpickle/blob/main/CHANGES.rst
https://github.com/jsonpickle/jsonpickle/issues/411 https://github.com/jsonpickle/jsonpickle/issues/395
Works w/ jsonpickle update, but I'll need to do regression tests as there is significant changes.
There's a regression where file objects are encoded as null
rather than _io.TextIOWrapper
.
Looks like this is because of the following addition:
class TextIOHandler(BaseHandler):
"""Serialize file descriptors as None because we cannot roundtrip"""
def flatten(self, obj, data):
return None
Edit: Fixed
:tada: This PR is included in version 2.1.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
3.11 is now generally available