- 04 Mar, 2020 1 commit
-
-
Wenzel Jakob committed
-
- 22 Jan, 2020 1 commit
-
-
Baljak committed
-
- 17 Jan, 2020 1 commit
-
-
fwjavox committed
-
- 05 Jan, 2020 2 commits
-
-
Baljak committed
-
Robert Haschke committed
-
- 02 Jan, 2020 2 commits
-
-
When binding code immediately throws an exception of type py::error_already_set (e.g. via py::module::import that fails), the catch block sets an import error as expected. Unfortunately, following this, the deconstructor of py::error_already_set decides to call py::detail::get_internals() and set up various internal data structures of pybind11, which fails given that the error flag is active. The call stack of this looks as follows: Py_init_mymodule() -> __cxa_decrement_exception_refcount -> error_already_set::~error_already_set() -> gil_scoped_acquire::gil_scoped_acquire() -> detail::get_internals() -> ... -> pybind11::detail::simple_collector() -> uh oh.. The solution is simple: we call detail::get_internals() once before running any binding code to make sure that the internal data structures are ready.
Wenzel Jakob committed -
Wenzel Jakob committed
-
- 31 Dec, 2019 1 commit
-
-
Wenzel Jakob committed
-
- 30 Dec, 2019 1 commit
-
-
This commit introduces the use of C++17-style fold expressions when casting tuples & the argument lists of functions. This change can improve performance of the resulting bindings: because fold expressions have short-circuiting semantics, pybind11 e.g. won't try to cast the second argument of a function if the first one failed. This is particularly effective when working with functions that have many overloads with long argument lists.
Wenzel Jakob committed
-
- 19 Dec, 2019 2 commits
-
-
* Fix test build in C++20 * Add C++20 char8_t/u8string support
Vemund Handeland committed -
If a debug interpreter is detected, we allow linking with pythonXX_d.lib under windows.
JGamache-autodesk committed
-
- 13 Dec, 2019 1 commit
-
-
Wenzel Jakob committed
-
- 12 Dec, 2019 1 commit
-
-
Boris Staletic committed
-
- 11 Dec, 2019 4 commits
-
-
This reverts commit 819802da.
Wenzel Jakob committed -
Nils Berg committed
-
Boris Staletic committed
-
Boris Staletic committed
-
- 28 Nov, 2019 3 commits
-
-
Isuru Fernando committed
-
This reverts commit 61e4f118.
Wenzel Jakob committed -
Wenzel Jakob committed
-
- 25 Nov, 2019 2 commits
-
-
Eric Cousineau committed
-
* Add FAQ entry, with code example, for dealing with long functions interruption
Charles Brossollet committed
-
- 24 Nov, 2019 1 commit
-
-
Sebastian Koslowski committed
-
- 16 Nov, 2019 1 commit
-
-
Francesco Biscani committed
-
- 14 Nov, 2019 4 commits
-
-
Francesco Biscani committed
-
Fixing SystemError when nb_bool/nb_nonzero sets a Python exception in type_caster<bool>::load (#1976)
Yannick Jadoul committed -
Erick Matsen committed
-
Matthew Dawkins committed
-
- 31 Oct, 2019 2 commits
-
-
Add Python 3.8 to considered versions in CMake for additional hints. https://cmake.org/cmake/help/v3.2/module/FindPythonLibs.html
Axel Huebl committed -
* test pair-copyability on C++17 upwards The stdlib falsely detects containers like M=std::map<T, U> as copyable, even when one of T and U is not copyable. Therefore we cannot rely on the stdlib dismissing std::pair<T, M> by itself, even on C++17. * fix is_copy_assignable bind_map used std::is_copy_assignable which suffers from the same problems as std::is_copy_constructible, therefore the same fix has been applied. * created tests for copyability
Sebastian Gsänger committed
-
- 23 Oct, 2019 1 commit
-
-
Hans Dembinski committed
-
- 22 Oct, 2019 2 commits
-
-
Hans Dembinski committed
-
Don't assume that just because the language version is C++17 that the standard library offers all C++17 features, too. When using clang-6.0 and --std=c++17 on Ubuntu 18.04 with libstdc++, __cpp_sized_deallocation is false.
Jeremy Nimmer committed
-
- 18 Oct, 2019 1 commit
-
-
Riccardo Bertossa committed
-
- 17 Oct, 2019 1 commit
-
-
When building with `-Werror,-Wmissing-prototypes`, `clang` complains about missing prototypes for functions defined through macro expansions. This PR adds the missing prototypes. ``` error: no previous prototype for function 'pybind11_init_impl_embedded' [ -Werror,-Wmissing-prototypes] PYBIND11_EMBEDDED_MODULE(embedded, mod) { ^ external/pybind11/include/pybind11/embed.h:61:5: note: expanded from macro 'PYBIND11_EMBEDDED_MODULE' PYBIND11_EMBEDDED_MODULE_IMPL(name) \ ^ external/pybind11/include/pybind11/embed.h:26:23: note: expanded from macro 'PYBIND11_EMBEDDED_MODULE_IMPL' extern "C" void pybind11_init_impl_##name() { \ ^ <scratch space>:380:1: note: expanded from here pybind11_init_impl_embedded ^ 1 error generated. ```nicolov committed
-
- 14 Oct, 2019 2 commits
-
-
Wenzel Jakob committed
-
Wenzel Jakob committed
-
- 08 Oct, 2019 1 commit
-
-
* Adapt to python3.8 C API change Do `Py_DECREF(type)` on all python objects on deallocation fix #1946 * Add bare python3.8 build to CI matrix While numpy/scipy wheels are available, run python3.8 test without them
Sergei Izmailov committed
-
- 06 Oct, 2019 1 commit
-
-
Boris Dalstein committed
-
- 21 Sep, 2019 1 commit
-
-
Wenzel Jakob committed
-