- 01 Dec, 2018 1 commit
-
-
This avoids GIL deadlocking when pybind11 tries to acquire the GIL in a thread that already acquired it using standard Python API (e.g. when running from a Python thread).
Borja Zarco committed
-
- 20 Nov, 2018 1 commit
-
-
Baljak committed
-
- 16 Nov, 2018 2 commits
-
-
[ci skip]
Wenzel Jakob committed -
* Adds std::deque to the types supported by list_caster in stl.h. * Adds a new test_deque test in test_stl.{py,cpp}. * Updates the documentation to include std::deque as a default supported type.voxmea committed
-
- 13 Nov, 2018 1 commit
-
-
* Add possible solution to ImportError issue
Ahuva Kroizer committed
-
- 11 Nov, 2018 3 commits
-
-
Karl Haubenwallner committed
-
* Check default holder -Recognize "std::unique_ptr<T, D>" as a default holder even if "D" doesn't match between base and derived holders * Add test for unique_ptr<T, D> change
Trevor Laughlin committed -
Pybind11 provides a cast operator between opaque void* pointers on the C++ side and capsules on the Python side. The py::cast<void *> expression was not aware of this possibility and incorrectly triggered a compile-time assertion ("Unable to cast type to reference: value is local to type caster") that is now fixed.Wenzel Jakob committed
-
- 09 Nov, 2018 3 commits
-
-
* Support C++17 aligned new statement This patch makes pybind11 aware of nonstandard alignment requirements in bound types and passes on this information to C++17 aligned 'new' operator. Pre-C++17, the behavior is unchanged.
Wenzel Jakob committed -
Wenzel Jakob committed
-
This PR brings the std::array<> caster in sync with the other STL type casters: to accept an arbitrary sequence as input (rather than a list, which is too restrictive).
Wenzel Jakob committed
-
- 03 Nov, 2018 1 commit
-
-
Michał Wawrzyniec Urbańczyk committed
-
- 01 Nov, 2018 1 commit
-
-
Add a detailed link to Python 3 documentation. Add a caveat about the program terminating if initializing the interpreter fails.
Josh Kelley committed
-
- 24 Oct, 2018 4 commits
-
-
* Issue #1532: Incompatible config options, /MP vs /Gm for MSVC in DEBUG
Rune Paamand committed -
Wenzel Jakob committed
-
Tarcísio Fischer committed
-
Ryota Suzuki committed
-
- 14 Oct, 2018 1 commit
-
-
cdyson37 committed
-
- 11 Oct, 2018 1 commit
-
-
* Fix for Issue #1258 list_caster::load method will now check for a Python string and prevent its automatic conversion to a list. This should fix the issue "pybind11/stl.h converts string to vector<string> #1258" (https://github.com/pybind/pybind11/issues/1258) * Added tests for fix of issue #1258 * Changelog: stl string auto-conversion
Allan Leal committed
-
- 10 Oct, 2018 1 commit
-
-
Henry Schreiner committed
-
- 02 Oct, 2018 1 commit
-
-
Jason Rhinelander committed
-
- 27 Sep, 2018 1 commit
-
-
* Update iostream.h: Changed a local varname 'self' to 'self_' Avoiding conflicts in namespace pybind11::self. https://github.com/pybind/pybind11/issues/1531
Rune Paamand committed
-
- 25 Sep, 2018 1 commit
-
-
* Fix potential crash when calling an overloaded function The crash would occur if: - dispatcher() uses two-pass logic (because the target is overloaded and some arguments support conversions) - the first pass (with conversions disabled) doesn't find any matching overload - the second pass does find a matching overload, but its return value can't be converted to Python The code for formatting the error message assumed `it` still pointed to the selected overload, but during the second-pass loop `it` was nullptr. Fix by setting `it` correctly if a second-pass call returns a nullptr `handle`. Add a new test that segfaults without this fix. * Make overload iteration const-correct so we don't have to iterate again on second-pass error * Change test_error_after_conversions dependencies to local classes/variables
oremanj committed
-
- 14 Sep, 2018 2 commits
-
-
Davis E. King committed
-
Wenzel Jakob committed
-
- 11 Sep, 2018 8 commits
-
-
* Info about inconsistent detection of Python version between pybind11 and CMake in FAQ
Semen Yesylevskyy committed -
This commit addresses an inefficiency in how enums are created in pybind11. Most of the enum_<> implementation is completely generic -- however, being a template class, it ended up instantiating vast amounts of essentially identical code in larger projects with many enums. This commit introduces a generic non-templated helper class that is compatible with any kind of enumeration. enum_ then becomes a thin wrapper around this new class. The new enum_<> API is designed to be 100% compatible with the old one.
Wenzel Jakob committed -
object_api::operator[] has a powerful overload for py::handle that can accept slices, tuples (for NumPy), etc. Lists, sequences, and tuples provide their own specialized operator[], which unfortunately disables this functionality. This is accidental, and the purpose of this commit is to re-enable the more general behavior. This commit is tangentially related to the previous one in that it makes py::handle/py::object et al. behave more like their Python counterparts.
Wenzel Jakob committed -
This commit revamps the object_api class so that it maps most C++ operators to their Python analogs. This makes it possible to, e.g. perform arithmetic using a py::int_ or py::array.
Wenzel Jakob committed -
* check for already existing enum value added; added test * added enum value name to exception message * test for defining enum with multiple identical names moved to test_enum.cpp/py
Krzysztof Fornalczyk committed -
Wenzel Jakob committed
-
Jeff VanOss committed
-
Wenzel Jakob committed
-
- 08 Sep, 2018 1 commit
-
-
* VS 15.8.0 Preview 4.0 has a bug with alias templates
Michael Goulding committed
-
- 29 Aug, 2018 4 commits
-
-
pybind11 headers passed via the `pybind11_add_module` CMake function can now be included as `SYSTEM` includes (`-isystem`). This allows to set stricter (or experimental) warnings in calling projects that might throw otherwise in headers a user of pybind11 can not influence.
Axel Huebl committed -
builds against a python debug library were unreliable and could lead to symbol errors during linking. Setting the `Py_DEBUG` define is necessary when linking against a debug build: https://stackoverflow.com/questions/39161202/how-to-work-around-missing-pymodule-create2-in-amd64-win-python35-d-lib https://docs.python.org/2/c-api/intro.html#debugging-builds https://docs.python.org/3.6/c-api/intro.html#debugging-builds
Axel Huebl committed -
Wenzel Jakob committed
-
Justin Bassett committed
-
- 28 Aug, 2018 2 commits
-
-
Henry Schreiner committed
-
Matthias Geier committed
-