Skip to content
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

Fix Incompatibility with Python 3.12 #53

Merged
merged 1 commit into from
Nov 10, 2023
Merged

Conversation

JacksonBurns
Copy link
Contributor

According to the Python docs for the random module (here):

Changed in version 3.12: Automatic conversion of non-integer types is no longer supported. Calls such as randrange(10.0) and randrange(Fraction(10, 1)) now raise a TypeError.

Python 3.12 will no longer automatically cast these floats to ints, making padelpy incompatible with 3.12. This patch should fix it.

According to the Python docs for the random module (https://docs.python.org/3/library/random.html#functions-for-integers): 
Changed in version 3.12: Automatic conversion of non-integer types is no longer supported. Calls such as randrange(10.0) and randrange(Fraction(10, 1)) now raise a TypeError.

Python 3.12 will no longer automatically cast these floats to ints.
@JacksonBurns
Copy link
Contributor Author

@tjkessler @FanwangM I can't request your review, but this is ready for review. Thanks for building and maintaining padelpy!

@tjkessler
Copy link
Member

@JacksonBurns thanks for the fix! I'll merge, new version will be 0.1.16.

@tjkessler tjkessler merged commit da6d36e into ecrl:master Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants