New submission from Campbell Barton ideasman42@gmail.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
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue9499 _______________________________________
Mark Lawrence added the comment:
Can somebody review this small patch please.
---------- nosy: +BreamoreBoy
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue9499 _______________________________________
Change by Mark Lawrence breamoreboy@gmail.com:
---------- nosy: -BreamoreBoy
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue9499 _______________________________________
Change by Irit Katriel iritkatriel@yahoo.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
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue9499 _______________________________________
Campbell Barton ideasman42@gmail.com added the comment:
This patch is still relevant, mentioning this since the patch is from a while ago.
----------
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue9499 _______________________________________