]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132859: Run debugger scripts in their own namespaces (#132860)
authorMatt Wozniski <mwozniski@bloomberg.net>
Wed, 23 Apr 2025 23:40:24 +0000 (19:40 -0400)
committerGitHub <noreply@github.com>
Wed, 23 Apr 2025 23:40:24 +0000 (23:40 +0000)
commita94c7528b596e9ec234f12ebeeb45fc731412b18
tree72e964f2b6b407e5fd23923d1b6ce957669f54a2
parent402dba29281c1e1092ff32875c91f23bacabb677
gh-132859: Run debugger scripts in their own namespaces (#132860)

Run debugger scripts in their own namespaces

Previously scripts injected by `sys.remote_exec` were run with the
globals of the `__main__` module. Instead, run each injected script
with an empty set of globals. If someone really wants to use the
`__main__` module's namespace, they can always `import __main__`.
Lib/test/test_sys.py
Python/ceval_gil.c