[issue39161] Py_NewInterpreter docs need updating for multi-phase initialization
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
New submission from Nick Coghlan <ncoghlan@gmail.com>: The Py_NewInterpreter docs only cover the behaviour of extension modules that use single-phase initialization: https://docs.python.org/3/c-api/init.html#c.Py_NewInterpreter Multi-phase initialization allows each subinterpreter to get its own copy of extension modules as well, with only C/C++ level static and global variables being shared. ---------- assignee: docs@python components: Documentation messages: 359019 nosy: docs@python, ncoghlan, petr.viktorin priority: normal severity: normal stage: needs patch status: open title: Py_NewInterpreter docs need updating for multi-phase initialization type: enhancement versions: Python 3.8, Python 3.9 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39161> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Petr Viktorin <encukou@gmail.com> added the comment: Thanks for the report. I'll draft something better. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39161> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Change by Petr Viktorin <encukou@gmail.com>: ---------- keywords: +patch pull_requests: +17312 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17896 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39161> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +17329 pull_request: https://github.com/python/cpython/pull/17918 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39161> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset 6c5d661342d12f6836580b0e75e3569c764527ae by Miss Islington (bot) (Petr Viktorin) in branch 'master': bpo-39161: Document multi-phase init modules under Py_NewInterpreter() (GH-17896) https://github.com/python/cpython/commit/6c5d661342d12f6836580b0e75e3569c764... ---------- nosy: +miss-islington _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39161> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset 20c990229e98ad69c03e44fe61f8dce99b96cf9d by Miss Islington (bot) in branch '3.8': bpo-39161: Document multi-phase init modules under Py_NewInterpreter() (GH-17896) https://github.com/python/cpython/commit/20c990229e98ad69c03e44fe61f8dce99b9... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39161> _______________________________________
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Change by Petr Viktorin <encukou@gmail.com>: ---------- stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39161> _______________________________________
participants (3)
-
miss-islington
-
Nick Coghlan
-
Petr Viktorin