Skip to content

Update tblib to 3.2.2 - #2823

Open
pyup-bot wants to merge 2 commits into
masterfrom
pyup-update-tblib-1.3.2-to-3.2.2
Open

Update tblib to 3.2.2#2823
pyup-bot wants to merge 2 commits into
masterfrom
pyup-update-tblib-1.3.2-to-3.2.2

Conversation

@pyup-bot

Copy link
Copy Markdown
Collaborator

This PR updates tblib from 1.3.2 to 3.2.2.

Changelog

3.2.2

~~~~~~~~~~~~~~~~~~

* Fixed regression occurring with ``TimeoutError`` exceptions. They should be represented now exactly as the original when unpickling.
Contributed by Jacob Tomlinson in `85 <https://github.com/ionelmc/python-tblib/pull/85>`_.

3.2.1

~~~~~~~~~~~~~~~~~~

* Fixed regression occurring with ``ExceptionGroup`` exceptions. That exception type is now handled specifically in the new ``unpickle_exception_with_attrs`` function (just like ``OSError``).

3.2.0

~~~~~~~~~~~~~~~~~~

* Changed ``tblib.pickling_support.install`` to support exceptions with ``__init__`` that does match the default
``BaseException.__reduce__`` (as it expects the positional arguments to ``__init__`` to match the ``args`` attribute).

Special handling for OSError (and subclasses) is also included. The errno, strerror, winerror, filename and filename2 attributes will be added in the reduce structure (if set).

This will support exception subclasses that do this without defining a custom ``__reduce__``:

.. code-block:: python

 def __init__(self):
     super().__init__('mistery argument')

 def __init__(self, mistery_argument):
     super().__init__()
     self.mistery_argument = mistery_argument

Tests and POC contributed by Oldřich Jedlička in `73 <https://github.com/ionelmc/python-tblib/pull/73>`_.
* Fixed some doctest and coverage config. Contributed by Colin Watson in `79 <https://github.com/ionelmc/python-tblib/pull/79>`_.

3.1.0

~~~~~~~~~~~~~~~~~~

* Improved performance of ``as_traceback`` by a large factor.
Contributed by Haoyu Weng in `81 <https://github.com/ionelmc/python-tblib/pull/81>`_.
* Dropped support for now-EOL Python 3.8 and added 3.13 in the test grid.

3.0.0

~~~~~~~~~~~~~~~~~~

* Added support for  ``__context__``, ``__suppress_context__`` and ``__notes__``.
Contributed by Tim Maxwell in `72 <https://github.com/ionelmc/python-tblib/pull/72>`_.
* Added the ``get_locals`` argument to ``tblib.pickling_support.install()``, ``tblib.Traceback`` and ``tblib.Frame``.
Fixes `41 <https://github.com/ionelmc/python-tblib/issues/41>`_.
* Dropped support for now-EOL Python 3.7 and added 3.12 in the test grid.

2.0.0

~~~~~~~~~~~~~~~~~~

* Removed support for legacy Pythons (2.7 and 3.6) and added Python 3.11 in the test grid.
* Some cleanups and refactors (mostly from ruff).

1.7.0

~~~~~~~~~~~~~~~~~~

* Add more attributes to ``Frame`` and ``Code`` objects for pytest compatibility. Contributed by Ivanq in
`58 <https://github.com/ionelmc/python-tblib/pull/58>`_.

1.6.0

~~~~~~~~~~~~~~~~~~

* When pickling an Exception, also pickle its traceback and the Exception chain
(``raise ... from ...``). Contributed by Guido Imperiale in
`53 <https://github.com/ionelmc/python-tblib/issues/53>`_.

1.5.0

~~~~~~~~~~~~~~~~~~

* Added support for Python 3.8. Contributed by Victor Stinner in
`42 <https://github.com/ionelmc/python-tblib/issues/42>`_.
* Removed support for end of life Python 3.4.
* Few CI improvements and fixes.

1.4.0

~~~~~~~~~~~~~~~~~~

* Removed support for end of life Python 3.3.
* Fixed tests for Python 3.7. Contributed by Elliott Sales de Andrade in
`36 <https://github.com/ionelmc/python-tblib/issues/36>`_.
* Fixed compatibility issue with Twised (``twisted.python.failure.Failure`` expected a ``co_code`` attribute).
Links

@pyup-bot pyup-bot mentioned this pull request Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant