pybind / pybind/pybind11

[FEAT] Support "multi-phase initialization" of modules

Open
#2,548 2 comments 2 reactions 1 assignee View on GitHub

@YannickJadoul is already working on this.

Since Oct 4, 2020.

Dominant language
C++
Stars
18k
Forks
2.3k
Avg merge
5d 17h
Merged PRs (30d)
10

Description

Apparently, Python >= 3.5 supports "multi-phase initialization", allowing for sub-interpreters to be used: https://docs.python.org/3/c-api/module.html#multi-phase-initialization

Something tells me this might also be relevant to #1558? (@EricCousineau-TRI might be interested?)

Something to try and play around with, if we have time? :-)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.