Skip to content

PyO3 0.19.2

Compare
Choose a tag to compare
@davidhewitt davidhewitt released this 01 Aug 06:25

This release is a bugfix release with the primary focus being improved compatibility with Python 3.12 betas. Please note that until Python 3.12.0 stable is released PyO3 cannot guarantee that code compiled using PyO3 and beta versions of Python 3.12 will support 3.12 stable.

There have been some new minor APIs added in this release: PyErr::Display, PyAny::downcast_exact and PySlice::full.

Other bugfixes shipped in this release include:

  • A correction to the conversion of Python datetime to chrono::DateTime<FixedOffset> with respect to the handling of timezones.
  • Fix an edge case where PyErr::matches and PyErr::get_type could return results inconsistent with each other.
  • Fix cases where converting a Python exception into a PyErr would cause its traceback to be lost.

Thank you to the following users for the improvements:

@adamreichold
@alex
@BooleanCat
@CallMeMSL
@cdce8p
@davidhewitt
@grantslatton
@juntyr
@mejrs
@panpilkarz
@ringsaturn
@zakstucke