Skip to content

Use constant hash for Python's "None" object - #2890

Merged
mikestillman merged 1 commit into
Macaulay2:developmentfrom
d-torrance:python
Sep 13, 2023
Merged

Use constant hash for Python's "None" object#2890
mikestillman merged 1 commit into
Macaulay2:developmentfrom
d-torrance:python

Conversation

@d-torrance

Copy link
Copy Markdown
Member

This way, we don't need the getPythonNone function, which was only called once, to create the object. Beginning with Python 3.12, None will have a constant hash anyway. We use this new value. See python/cpython#99541.

This way, we don't need the "getPythonNone" function, which was only
called once, to create the object.  Beginning with Python 3.12, None
will have a constant hash anyway.  We use this new value.  See
python/cpython#99541.
@mikestillman
mikestillman merged commit a26fd29 into Macaulay2:development Sep 13, 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