-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
DO NOT MERGE: Test Python 3.14 #12710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
db60e7e
to
bf69518
Compare
a3721b9
to
5464999
Compare
@@ -128,15 +128,6 @@ | |||
* [Vigenere Cipher](ciphers/vigenere_cipher.py) | |||
* [Xor Cipher](ciphers/xor_cipher.py) | |||
|
|||
## Compression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename Compression --> Data Compression to avoid name collision.
https://docs.python.org/3.14/whatsnew/3.14.html#pep-784-adding-zstandard-to-the-standard-library
@@ -20,7 +20,7 @@ def gronsfeld(text: str, key: str) -> str: | |||
>>> gronsfeld('yes, ¥€$ - _!@#%?', '') | |||
Traceback (most recent call last): | |||
... | |||
ZeroDivisionError: integer modulo by zero | |||
ZeroDivisionError: division by zero |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -15,7 +15,7 @@ def res(x, y): | |||
>>> res(-1, 5) | |||
Traceback (most recent call last): | |||
... | |||
ValueError: math domain error | |||
ValueError: expected a positive input, got -1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -40,7 +40,7 @@ class FFT: | |||
|
|||
Print product | |||
>>> x.product # 2x + 3x^2 + 8x^3 + 4x^4 + 6x^5 | |||
[(-0+0j), (2+0j), (3+0j), (8+0j), (6+0j), (8+0j)] | |||
[(-0-0j), (2+0j), (3-0j), (8-0j), (6+0j), (8+0j)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CAREFUL REVIEW PLEASE!
I cannot explain the required changes to maths/radix2_fft.py
@KirilBangachev Are you able to help us understand why Python 3.14 pre-release is returning different test results than Python < 3.14?
@hugovk congratulations on the compatibility of Python 3.14 beta. This repo contains tested Python algorithms spanning lots of domains and third-party libraries from a huge variety of contributors. We always test and run on the current version of CPython and when each beta 1 release ships I port to it making any required changes. Of all the upgrades that I have done, Python v3.14 is by far the cleanest and simplest!! Third party tools like SciPy, Pillow, and H5py all seem ready to go. This has never been the case before so I suspect that you have been doing a lot of behind-the-scenes work to ensure everyone is ready for a great release. We needed to rename our compression directory and change the text of a few exceptions but these were trivial changes. Radix2_fft.py requires changes that I cannot understand but for an initial beta, I am very impressed. Thanks and congratulations 🎉🎈🍾 |
Good to hear, thank you! And thank you for the early testing :)
Personally I've only been involved with Pillow, but I suspect much of it is down to the excellent work done by the Quansight team helping projects get ready for free-threading, which overlaps getting ready for 3.14. cc @ngoldbaum @lysnikolaou https://labs.quansight.org/blog/free-threaded-python-rollout |
Describe your change:
Checklist: