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
“unmatched paren” for space before parenthesis in Py_BuildValue #84489
Comments
According to the C-API documentation¹ for
However format strings such as
By contrast I could reproduce this problem with Python 3.7 and 3.8. I did not try other versions. Appended is a minimal C extension exhibiting the problem. I compile and run with: gcc -fPIC -I/usr/include/python3.8 -c foo.c -o foo.o ---- |
(cherry picked from commit 5c6e854) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…trings (GH-21158) The docs state that the space, tab, colon, and comma characters are ignored in Py_BuildValue() format strings. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
I decided to not backport this change. It is impossible to backport tests to 3.11, because of completely different structure of C API tests. Backporting it without tests is not very good. But if we finally decide to backport C API tests from 3.12 to 3.11, the difference between 3.11 and 3.12 can cause many troubles. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
Linked PRs
The text was updated successfully, but these errors were encountered: