-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Invalid variable name in venv
code for symlink failure handling on Windows
#124212
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
Labels
3.13
bugs and security fixes
3.14
bugs and security fixes
stdlib
Python modules in the Lib dir
topic-venv
Related to the venv module
type-bug
An unexpected behavior, bug, or error
Comments
Thanks for the report!
Are you sure about that? From what I can see, it only affects 3.13 and 3.14 (current main) branches. |
You are right, updated the description |
zooba
pushed a commit
that referenced
this issue
Sep 18, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 18, 2024
…honGH-124211) (cherry picked from commit ea7fe1f) Co-authored-by: Jacek <jacek.duszenko@gmail.com>
savannahostrowski
pushed a commit
to savannahostrowski/cpython
that referenced
this issue
Sep 22, 2024
Yhg1s
pushed a commit
that referenced
this issue
Sep 30, 2024
Thanks for the report and fix+test! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.13
bugs and security fixes
3.14
bugs and security fixes
stdlib
Python modules in the Lib dir
topic-venv
Related to the venv module
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
The
dst
variable in https://github.com/python/cpython/blob/main/Lib/venv/__init__.py#L396 should be nameddest
. Otherwise it throws theUnboundLocalError: cannot access local variable 'dst' where it is not associated with a value
.I have a PR that fixes this and also adds a test covering this code path.
This is occurring on Python 3.13 and 3.14.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
The text was updated successfully, but these errors were encountered: