summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pydoc/test_pydoc.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2025-05-22 01:33:35 (GMT)
committerGitHub <noreply@github.com>2025-05-22 01:33:35 (GMT)
commit998991513b3300c3c6627857df92db81a40355c9 (patch)
treeee1309c8a5b81d847d4bb040601b0266ad01f89f /Lib/test/test_pydoc/test_pydoc.py
parent93ab55bd703f1238cc93327a1a285921b47fa8a3 (diff)
downloadcpython-998991513b3300c3c6627857df92db81a40355c9.zip
cpython-998991513b3300c3c6627857df92db81a40355c9.tar.gz
cpython-998991513b3300c3c6627857df92db81a40355c9.tar.bz2
[3.14] gh-127960 Fix the REPL to set the correct namespace by setting the correct `__main__` module (gh-134275) (gh-134473)
The `__main__` module imported in the `_pyrepl` module points to the `_pyrepl` module itself when the interpreter was launched without `-m` option and didn't execute a module, while it's an unexpected behavior that `__main__` can be `_pyrepl` and relative imports such as `from . import *` works based on the `_pyrepl` module. (cherry picked from commit b1b8962443e7d418601658a4b05347a5a9161910) Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com> Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib/test/test_pydoc/test_pydoc.py')
0 files changed, 0 insertions, 0 deletions