Skip to content

New REPL sets global __package__ to '_pyrepl' #123973

@sobolevn

Description

@sobolevn
Python 3.14.0a0 (heads/main-dirty:a2d0818c85c, Sep 10 2024, 22:19:41) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> __package__
'_pyrepl'
Python 3.11.9 (main, Jun 29 2024, 11:57:49) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> __package__ is None
True

I am not sure that this is a bug. But it might be.
Please, feel free to close if this is expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-replRelated to the interactive shell

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions