- 19 Dec, 2019 1 commit
-
-
Vemund Handeland authored
* Fix test build in C++20 * Add C++20 char8_t/u8string support
-
- 24 Nov, 2019 1 commit
-
-
Sebastian Koslowski authored
-
- 14 Nov, 2019 2 commits
-
-
Francesco Biscani authored
-
Yannick Jadoul authored
Fixing SystemError when nb_bool/nb_nonzero sets a Python exception in type_caster<bool>::load (#1976)
-
- 31 Oct, 2019 1 commit
-
-
Sebastian Gsänger authored
* 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
-
- 23 Oct, 2019 1 commit
-
-
Hans Dembinski authored
-
- 20 Sep, 2019 2 commits
-
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
- 19 Sep, 2019 1 commit
-
-
Sergei Izmailov authored
* fix: Avoid conversion to `int_` rhs argument of enum eq/ne * test: compare unscoped enum with strings * suppress comparison to None warning * test unscoped enum arithmetic and comparision with unsupported type
-
- 04 Sep, 2019 1 commit
-
-
Lori A. Burns authored
-
- 27 Aug, 2019 1 commit
-
-
Stephen Larew authored
-
- 19 Aug, 2019 2 commits
-
-
kingofpayne authored
-
Andre Schmeißer authored
* Make `overload_cast_impl` available in C++11 mode. Narrow the scope of the `#if defined(PYBIND11_CPP14)` block around overload_cast to only cover the parts where C++14 is stricly required. Thus, the implementation in `pybind11::details::overload_cast_impl` is still available in C++11 mode. * PR #1581: Modify test to use overload_cast_impl, update docs and change log
-
- 16 Aug, 2019 1 commit
-
-
Sergei Lebedev authored
Dynamically resolving __contains__ on each call is wasteful since set has a public PySet_Contains function.
-
- 15 Aug, 2019 1 commit
-
-
ali-beep authored
-
- 27 Jul, 2019 1 commit
-
-
Pauli Virtanen authored
PyArray_DescrFromType returns a new reference, not borrowed one
-
- 23 Jul, 2019 1 commit
-
-
Eric Cousineau authored
numpy: Add test for explicit dtype checks. At present, int64 + uint64 do not exactly match dtype(...).num
-
- 19 Jul, 2019 1 commit
-
-
phil-zxx authored
* Added ability to convert from Python datetime.date and datetime.time to C++ system_clock::time_point
-
- 18 Jul, 2019 1 commit
-
-
Jeremy Maitin-Shepard authored
-
- 15 Jul, 2019 2 commits
-
-
Saran Tunyasuvunakool authored
This is only necessary if `get_internals` is called for the first time in a given module when the running thread is in a GIL-released state. Fixes #1364
-
Igor Socec authored
* Test dtype field order in numpy dtype tests When running tests with NumPy 1.14 or later this test exposes the "invalid buffer descriptor" error reported in #1274. * Create dtype_ptr with ordered fields
-
- 06 Jul, 2019 1 commit
-
-
Wenzel Jakob authored
-
- 22 Jun, 2019 1 commit
-
-
Ian Bell authored
-
- 13 Jun, 2019 1 commit
-
-
Alexander Gagarin authored
* Fix casting of time points with non-system-clock duration on Windows Add explicit `time_point_cast` to time point with duration of system clock. Fixes Visual Studio compile error. * Add test case for custom time points casting
-
- 11 Jun, 2019 6 commits
-
-
Wenzel Jakob authored
-
sizmailov authored
-
Chris Rusby authored
-
Roland Dreier authored
In def_readonly and def_readwrite, there is an assertion that the member comes from the class or a base class: static_assert(std::is_base_of<C, type>::value, "..."); However, if C and type are the same type, is_base_of will still only be true if they are the same _non-union_ type. This means we can't define accessors for the members of a union type because of this assertion. Update the assertion to test std::is_same<C, type>::value || std::is_base_of<C, type>::value which will allow union types, or members of base classes. Also add a basic unit test for accessing unions. -
Alexander Gagarin authored
* Fix async Python functors invoking from multiple C++ threads (#1587) Ensure GIL is held during functor destruction. * Add async Python callbacks test that runs in separate Python thread
-
Axel Huebl authored
I found that the numpy array tests already contained an empty-shaped array test, but none with data in it. Following PEP 3118, scalars have an empty shape and ndim 0. This works already and is now also documented/covered by a test.
-
- 10 Jun, 2019 2 commits
-
-
luzpaz authored
-
Blake Thompson authored
* Added __contains__ to stl bindings for maps
-
- 12 May, 2019 1 commit
-
-
Yannick Jadoul authored
* Fixing order of arguments in call to PyErr_GivenExceptionMatches in pybind11::error_already_set.matches * Added tests on error_already_set::matches fix for exception base classes
-
- 06 Apr, 2019 1 commit
-
-
Henry Schreiner authored
* Fix warning that not including a cmake source or build dir will be a fatal error (it is now on newest CMakes) * Fixes appveyor * Travis uses CMake 3.9 for more than a year now * Travis dropped sudo: false in December * Dropping Sphinx 2 - clang7: Suppress self-assign warnings; fix missing virtual dtors - pypy: - Keep old version (newer stuff breaks) - Pin packages to extra index for speed - travis: - Make docker explicit; remove docker if not needed - Make commands more verbose (for debugging / repro) - Make Ubuntu dist explicit per job - Fix Windows - Add names to travis
-
- 04 Feb, 2019 3 commits
-
-
Wenzel Jakob authored
-
Guilhem Saurel authored
-
-
- 03 Jan, 2019 1 commit
-
-
Yannick Jadoul authored
-
- 01 Dec, 2018 1 commit
-
-
Borja Zarco authored
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).
-
- 16 Nov, 2018 1 commit
-
-
voxmea authored
* 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.
-