[issue46926] runpy.run_path didn't set __package__ to None as describe in doc

2022-03-08 Thread Charlie Yan
Change by Charlie Yan : -- components: +Library (Lib) type: -> behavior ___ Python tracker <https://bugs.python.org/issue46926> ___ ___ Python-bugs-list mai

[issue46926] runpy.run_path didn't set __package__ to None as describe in doc

2022-03-04 Thread Charlie Yan
Change by Charlie Yan : -- title: runpy.run_path didn't set __package__ as describe in doc -> runpy.run_path didn't set __package__ to None as describe in doc ___ Python tracker <https://bugs.pytho

[issue46926] runpy.run_path didn't set __package__ as describe in doc

2022-03-04 Thread Charlie Yan
New submission from Charlie Yan : As described in the doc: https://docs.python.org/3.8/library/runpy.html#runpy.run_path > If the supplied path directly references a script file (whether as source or > as precompiled byte code), then __file__ will be set to the supplied path, > and