This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2011年12月09日 02:22 by Nam.Nguyen, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| module.load.path.diff | Nam.Nguyen, 2011年12月09日 02:22 | module load path | review | |
| Messages (6) | |||
|---|---|---|---|
| msg149071 - (view) | Author: Nam Nguyen (Nam.Nguyen) * | Date: 2011年12月09日 02:22 | |
A doc patch to remind Python embedder to set sys.path prior to Py_Initialize. This is to ensure a controlled module load path to work around these issues: http://bugs.python.org/issue12989 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983 |
|||
| msg149169 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2011年12月10日 16:35 | |
Thanks for the patch, I will make a few wording/markup editions if you don’t mind and post the edited version. |
|||
| msg149172 - (view) | Author: Nam Nguyen (Nam.Nguyen) * | Date: 2011年12月10日 17:13 | |
That would be great. Thank you. |
|||
| msg150741 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2012年01月06日 16:44 | |
I did the markup edits but then found out that the doc for Py_Initialize in c-api/init already mentions the module load path and the module table, so I’m going to make another patch with just a link to that. |
|||
| msg150760 - (view) | Author: Nam Nguyen (Nam.Nguyen) * | Date: 2012年01月06日 18:55 | |
Please do keep the warning though. It is best to warn in both Python-C Py_Initialize() document and the Embedding tutorial. |
|||
| msg355169 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2019年10月22日 22:58 | |
No activity since 2012, I close the issue. Moreover, the PEP 587 now provides a clean C API to configure sys.path. https://docs.python.org/dev/c-api/init_config.html#c.PyConfig.module_search_paths |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:24 | admin | set | github: 57771 |
| 2019年10月22日 22:58:57 | vstinner | set | status: open -> closed nosy: + vstinner messages: + msg355169 resolution: out of date stage: resolved |
| 2012年01月06日 18:55:10 | Nam.Nguyen | set | messages: + msg150760 |
| 2012年01月06日 18:27:48 | eric.snow | set | nosy:
+ eric.snow |
| 2012年01月06日 16:44:50 | eric.araujo | set | messages: + msg150741 |
| 2011年12月10日 17:13:12 | Nam.Nguyen | set | messages: + msg149172 |
| 2011年12月10日 16:35:22 | eric.araujo | set | nosy:
+ eric.araujo messages: + msg149169 versions: + Python 3.3, - Python 2.6, Python 3.1 |
| 2011年12月09日 02:22:04 | Nam.Nguyen | create | |