rust-cpython v0.7.0 Release Notes
Release Date: 2021-10-09 // over 3 years ago-
- โ Added support for Python 3.10.
- โ Removed support for Python 3.3 and 3.4.
- Consistently use
__index__
when converting Python values to Rust integers- Breaking change: A function declared with a
i: i32
parameter no longer accepts Python floating-point values.
- Breaking change: A function declared with a
- ๐ป Rust panic messages now are included in Python exception message (PR by @SimonSapin)
- Allow more arithmetic methods in
py_class!
(PR by @fsh) - Add
NumberProtocol
trait (PR by @Techcable) - [Add
GILGuard::check
][269] (PR by @DurhamG)
Previous changes from v0.6.0
-
- ๐ the minimum supported Rust version is now 1.41.1
- on Python 3, strings now directly use the UTF-8 representation stored inside the Python string
- visibility keywords are now permitted on classes and functions (PR by @tdyas)
- the
PyNone
type can be used as a marker representing None in Python (PR by [@markbt])