Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-106320: Move private _PyHash API to the internal C API#107026

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromvstinner:pycore_pyhash
Jul 22, 2023

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedJul 22, 2023
edited by bedevere-bot
Loading

  • No longer export most private _PyHash symbols, only export the ones which are needed by shared extensions.
  • Modules/_xxtestfuzz/fuzzer.c now uses the internal C API.

* No longer export most private _PyHash symbols, only export the ones  which are needed by shared extensions.* Modules/_xxtestfuzz/fuzzer.c now uses the internal C API.
@vstinnervstinner requested a review fromtiran as acode ownerJuly 22, 2023 13:22
@vstinnervstinnerenabled auto-merge (squash)July 22, 2023 13:28
@vstinnervstinner merged commit89f9875 intopython:mainJul 22, 2023
@vstinnervstinner deleted the pycore_pyhash branchJuly 22, 2023 14:04
illia-v added a commit to illia-v/oss-fuzz that referenced this pull requestJul 28, 2023
`Modules/_xxtestfuzz/fuzzer.c` in CPython started using private API inpython/cpython@89f9875#diff-a22ac7579f23068e0c6bcacf1086ee962fdf8e68725cf0510b42d0a389cf1efd.This made fuzzing builds failhttps://bugs.chromium.org/p/oss-fuzz/issues/detail?id=60831.Including needed header files fixes the error.
jonathanmetzman pushed a commit to google/oss-fuzz that referenced this pull requestJul 31, 2023
`Modules/_xxtestfuzz/fuzzer.c` in CPython started using private API inpython/cpython@89f9875#diff-a22ac7579f23068e0c6bcacf1086ee962fdf8e68725cf0510b42d0a389cf1efd.This made fuzzing builds failhttps://bugs.chromium.org/p/oss-fuzz/issues/detail?id=60831.Including needed header files fixes the error.
@skirpichev
Copy link
Contributor

Again, as in#108604, the gmpy2 uses some parts of this API, e.g. to hash mpz like int. Meanwhile I didaleaxit/gmpy#441 to workaround removed API.@vstinner, what we could do instead?

@vstinner
Copy link
MemberAuthor

Again, as in#108604, the gmpy2 uses some parts of this API, e.g. to hash mpz like int. Meanwhile I didaleaxit/gmpy#441 to workaround removed API.@vstinner, what we could do instead?

Would you mind to open a new issue, give the exhaustive list of functions that you need, and which API do you expect?

skirpichev added a commit to skirpichev/cpython that referenced this pull requestOct 28, 2023
dmrlawson pushed a commit to dmrlawson/capnpy that referenced this pull requestJun 9, 2025
_Py_HashBytes was hidden in 3.13 (python/cpython#107026).> C assumes that any function with an "implicit declaration" returns an int, which'll be smaller than a Py_hash_t, hence the different results. (https://groups.google.com/g/cython-users/c/YQkU8oc8oSM/m/nVJ_IX8KAgAJ)
dmrlawson pushed a commit to dmrlawson/capnpy that referenced this pull requestJun 9, 2025
_Py_HashBytes was hidden in 3.13 (python/cpython#107026).> C assumes that any function with an "implicit declaration" returns an int, which'll be smaller than a Py_hash_t, hence the different results. (https://groups.google.com/g/cython-users/c/YQkU8oc8oSM/m/nVJ_IX8KAgAJ)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tirantiranAwaiting requested review from tirantiran is a code owner

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@vstinner@skirpichev@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp