gh-116146: Add C-API to create module from spec and initfunc by itamaro · Pull Request #139196 · python/cpython
Bot
mentioned this pull request
- use `PyImport_CreateModuleFromInitfunc` for the new API - no need to introduce `create_builtin_ex` - update `create_builtin` and all callers - update exception message
itamaro
changed the title
gh-116146: Add new C-API to create builtin from spec and initfunc
gh-116146: Add C-API to create module from spec and initfunc
itamaro
marked this pull request as ready for review
* Test single-phase init as well; don't use private APIs in test * Doc update --------- Co-authored-by: Itamar Oren <itamarost@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
itamaro
deleted the
gh-116146-create-builtin-initfunc
branch
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request
…ythonGH-139196) Co-authored-by: Kumar Aditya <kumaraditya@python.org> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters