On 14. 06. 21 13:53, Fabio Valentini wrote:
On Sun, Jun 13, 2021 at 9:52 PM Miro Hrončok
> And we have a successful compose, so Python 3.10 is now the main Python on Rawhide.
Awesome, thanks for working on this, as always.
Python version updates are always scary, but you guys handle them so well.
I see one problem with the Rust bindings for CPython / libpython,
where the test suite now fails with Python 3.10:
Looking at the build log, the new test failures seem to be caused by
either API removals or subtle behaviour changes:
- TypeError: 'float' object cannot be interpreted as an integer
Indeed. wrap it in int() or math.floor()/ceil() as needed.
I suspect this is related to:
Builtin and extension functions that take integer arguments no longer accept
Decimals, Fractions and other objects that can be converted to integers only
with a loss (e.g. that have the __int__() method but do not have the
__index__() method). https://bugs.python.org/issue37999
- AttributeError: module 'unicodedata' has no attribute
Removed the unicodedata.ucnhash_CAPI attribute which was an internal PyCapsule
object. The related private _PyUnicode_Name_CAPI structure was moved to the
internal C API. https://bugs.python.org/issue42157
The relevant issue makes it sound like the unicodedata.ucnhash_CAPI attribute
was not usable at all but in case you've used it, I gues it was. There was no
deprecation period for this and maybe it should not have been removed?