[issue38266] Revert bpo-37878: Make PyThreadState_DeleteCurrent() Internal

2019-10-04 Thread Wenzel Jakob
Wenzel Jakob added the comment: This is great -- thank you for handling this so quickly. -- ___ Python tracker <https://bugs.python.org/issue38266> ___ ___ Pytho

[issue38266] Revert bpo-37878: Make PyThreadState_DeleteCurrent() Internal

2019-09-24 Thread Wenzel Jakob
New submission from Wenzel Jakob : A commit from a few days ago and discussed in issue #37878 removed an undocumented function PyThreadState_DeleteCurrent() from Python's public API. This function was exposed for good reasons and simply removing it because it is undocumented strikes me

[issue37878] Sub-Interpreters : Document PyThreadState_DeleteCurrent()

2019-09-24 Thread Wenzel Jakob
Wenzel Jakob added the comment: Hi, pybind11 developer here. A bit on context of our usage of this function: Pybind11 supports some advanced GIL-related tricks that *require* access this function. For instance, pybind11 can intercept a Python function call on the `main()` thread and delete

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-14 Thread Wenzel Jakob
Wenzel Jakob added the comment: Hi, pybind11 (https://github.com/pybind/pybind11) dev here. We're seeing massive memory increases due to this bug, which completely break our test suite (and likely any use of this library, which is commonly used to bind C++ code to Python). Please look

[issue26154] Add private _PyThreadState_UncheckedGet() to get the current thread state

2016-04-25 Thread Wenzel Jakob
Wenzel Jakob added the comment: I've also run into this regression. FWIW this is what I've ended up using to work around it (it's a mess, but what are we to do..) #if PY_VERSION_HEX >= 0x0305 && PY_VERSION_HEX < 0x03050200 extern "C" { /* Manually import _PyTh

[issue25006] List pybind11 binding generator

2015-10-15 Thread Wenzel Jakob
Wenzel Jakob added the comment: Hi, just another ping regarding this ticket. Since the last message, pybind11 now has: - Documentation on readthedocs: http://pybind11.readthedocs.org/en/latest/ - Continuous integration tests: https://travis-ci.org/wjakob/pybind11 - A first stable release

[issue25006] List pybind11 binding generator

2015-10-15 Thread Wenzel Jakob
Wenzel Jakob added the comment: Dear Antoine, I wonder if this makes sense, as pybind11 is a collection of C++ header files using the Python C API. The library is meant to be used by other projects but does not generate any installable code by itself. (i.e. it isn't clear what pip install

[issue25006] List pybind11 binding generator

2015-09-04 Thread Wenzel Jakob
New submission from Wenzel Jakob: Hi, over the last few months, I've been developing a library ("pybind11") for creating Python bindings of C++ code. It is similar in spirit to Boost.Python but uses a very different minimalist approach. It would be fantastic to get this library l