New submission from Campbell Barton email@example.com:
Some parts of the python api expect __main__ module dictionary to be the namespace when executing a script, this is true when running a python script from the python binary but NOT true when running a compiled script from the C/API which can lead to bugs which are not easy to solve unless the C/API author knows this.
---------- assignee: docs@python components: Documentation files: doc_py3_main_mod.diff keywords: patch messages: 112706 nosy: docs@python, ideasman42 priority: normal severity: normal status: open title: Python C/API Execution namespace undocumented. (patch included) type: behavior versions: Python 3.2 Added file: http://bugs.python.org/file18357/doc_py3_main_mod.diff
Change by Mark Lawrence firstname.lastname@example.org:
---------- nosy: -BreamoreBoy
Change by Irit Katriel email@example.com:
---------- components: +C API keywords: -patch stage: -> needs patch title: Python C/API Execution namespace undocumented. (patch included) -> DOC: C/API Execution namespace undocumented. (patch included) type: behavior -> enhancement versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.2
Campbell Barton firstname.lastname@example.org added the comment:
This patch is still relevant, mentioning this since the patch is from a while ago.