Re: [HEADS UP] Fedora 35 Python 3.10 rebuilds have started in a side tag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14. 06. 21 13:53, Fabio Valentini wrote:
On Sun, Jun 13, 2021 at 9:52 PM Miro Hrončok <mhroncok@xxxxxxxxxx> wrote:

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:
https://koschei.fedoraproject.org/package/rust-cpython?

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:

https://docs.python.org/3.10/whatsnew/3.10.html#other-language-changes

"""
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 'ucnhash_CAPI'

https://docs.python.org/3.10/whatsnew/3.10.html#removed

"""
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?

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux