Skip to content

Fix issue #3743: Hash changed signature in Python 3.3 - #3747

Merged
charris merged 1 commit into
numpy:masterfrom
cgohlke:py_hash_t
Sep 14, 2013
Merged

charris merged 1 commit into
numpy:masterfrom
cgohlke:py_hash_t

Conversation

@cgohlke

@cgohlke cgohlke commented Sep 14, 2013

Copy link
Copy Markdown
Contributor

As of Python 3.2 hash values are of type Py_hash_t. Previous versions use C long.

The changes should only affect win-amd64-py3.x, where sizeof(Py_hash_t) != sizeof(long).

This fixes issue #3743. All tests pass on win-amd64-py3.3, win-amd64-py2.7, and win32-py2.7.

Needs backport to 1.8 and 1.7.

As of Python 3.2 hash values are of type Py_hash_t. Previous versions use C long.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess this is OK. IIRC, npy_intp is defined as Py_ssize_t for later Python.

@charris

charris commented Sep 14, 2013

Copy link
Copy Markdown
Member

LGTM. Thanks Christolph.

charris added a commit that referenced this pull request Sep 14, 2013
Fix issue #3743: Hash changed signature in Python 3.3
@charris
charris merged commit 4d53e8b into numpy:master Sep 14, 2013
@charris

charris commented Sep 14, 2013

Copy link
Copy Markdown
Member

Should I do the backports?

This was referenced Sep 14, 2013
@charris

charris commented Sep 14, 2013

Copy link
Copy Markdown
Member

Done. Thanks for fixing this.

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