classification
Title: DOC: C/API Execution namespace undocumented. (patch included)
Type: enhancement Stage: needs patch
Components: C API, Documentation Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, ideasman42
Priority: normal Keywords:

Created on 2010-08-03 22:12 by ideasman42, last changed 2020-11-02 05:17 by ideasman42.

Files
File name Uploaded Description Edit
doc_py3_main_mod.diff ideasman42, 2010-08-03 22:12 Patch against r83689.
Messages (3)
msg112706 - (view) Author: Campbell Barton (ideasman42) * Date: 2010-08-03 22:12
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.
msg220846 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-06-17 17:59
Can somebody review this small patch please.
msg380179 - (view) Author: Campbell Barton (ideasman42) * Date: 2020-11-02 05:17
This patch is still relevant, mentioning this since the patch is from a while ago.
History
Date User Action Args
2020-11-02 05:17:08ideasman42setmessages: + msg380179
2020-10-22 22:58:44iritkatrielsetversions: + Python 3.8, Python 3.9, Python 3.10, - Python 3.2
title: Python C/API Execution namespace undocumented. (patch included) -> DOC: C/API Execution namespace undocumented. (patch included)
components: + C API
keywords: - patch
type: behavior -> enhancement
stage: needs patch
2019-03-15 23:22:34BreamoreBoysetnosy: - BreamoreBoy
2014-06-17 17:59:17BreamoreBoysetnosy: + BreamoreBoy
messages: + msg220846
2010-08-03 22:12:12ideasman42create