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

Add support for Python 3.11 #199

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

exarkun
Copy link

@exarkun exarkun commented Feb 13, 2023

Fixes #198

Instead, accept any arguments ``random.shuffle`` accepts.  Prior to Python
3.11 this was `random` but Python 3.9 deprecated this feature and Python 3.11
removed it.

python/cpython#84645

Accepting `*args, **kwargs` makes the signature compatible with whatever
Python runtime happens to be in use.
There is no guarantee that the given key and the key in the dictionary will be
identical.  There is only a guarantee that they will compare equal to each
other.

Something has changed on CPython 3.11 so that even the very simple case of a
short string key the underlying objects are not necessarily identical
anymore (though in previous CPython versions they typically would be).
@merkys
Copy link

merkys commented Feb 14, 2023

Thanks for this patch. I can confirm this fixes #198.

@exarkun
Copy link
Author

exarkun commented Jul 6, 2023

Are there blockers for merging this @mlenzen ? (I can't see why the CI jobs failed - GA expired the logs - and I can't re-run the action without pushing more revisions)

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.

Python 3.11 compatibility
3 participants