8000 Syntax error in _delim.py · Issue #102033 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Syntax error in _delim.py #102033

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

Closed
dmacks opened this issue Feb 18, 2023 · 1 comment
Closed

Syntax error in _delim.py #102033

dmacks opened this issue Feb 18, 2023 · 1 comment
Labels
3.11 only security fixes 3.12 only security fixes build The build process and cross-build type-bug An unexpected behavior, bug, or error

Comments

@dmacks
Copy link
dmacks commented Feb 18, 2023

Bug report

As part of packaging in fink, we try to byte-compile all .py using the just-built interpretter in the staging directory for installation. After compiling from the source tarball:

make install DESTDIR=/sw/build.build/root-python311-3.11.2-1
[...]
DYLD_LIBRARY_PATH=/sw/build.build/root-python311-3.11.2-1/sw/lib
+ /sw/build.build/root-python311-3.11.2-1/sw/bin/python3.11 -m compileall -f -o 0 -o 1 -o 2 _sysconfigdata__darwin_darwin.py Tools
[...]
Compiling 'Tools/c-analyzer/c_parser/parser/_delim.py'...
***   File "Tools/c-analyzer/c_parser/parser/_delim.py", line 37
    ''')
       ^
SyntaxError: f-string: empty expression not allowed

Your environment

This is OS X 10.13, I see the same results on python-3.11.2, and 3.10.10 and 3.10.4 but not 3.9.12, which makes sense since _delim.py was introduced via PR #22841 and unchanged since that point.

Linked PRs

@dmacks dmacks added the type-bug An unexpected behavior, bug, or error label Feb 18, 2023
@arhadthedev arhadthedev added the build The build process and cross-build label Feb 19, 2023
@corona10 corona10 added 3.11 only security fixes 3.12 only security fixes labels Feb 19, 2023
sobolevn added a commit to sobolevn/cpython that referenced this issue Feb 20, 2023
miss-islington pushed a commit that referenced this issue Mar 22, 2023
The easiest way to format strings with `{}` meaningful chars is via `%`.
@hauntsaninja
Copy link
Contributor

Thanks all!

Fidget-Spinner pushed a commit to Fidget-Spinner/cpython that referenced this issue Mar 27, 2023
)

The easiest way to format strings with `{}` meaningful chars is via `%`.
warsaw pushed a commit to warsaw/cpython that referenced this issue Apr 11, 2023
)

The easiest way to format strings with `{}` meaningful chars is via `%`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes 3.12 only security fixes build The build process and cross-build type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants
0