- Sep 14, 2017
-
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Dean Moldovan authored
When Travis changes their default Python 3.x, it breaks any hardcoded version selection. Fix: make pyenv activate everything (2.7, 3.x) and use whichever Python 3.x is on by default. [skip appveyor]
-
Dean Moldovan authored
-
tzh1043 authored
-
- Sep 13, 2017
-
-
jbarlow83 authored
* Expand documentation to include explicit example of py::module::import where one would expect it. * Describe how to use unbound and bound methods to class Python classes. [skip ci]
-
- Sep 12, 2017
-
-
Dean Moldovan authored
E.g. trying to convert a `list` to a `std::vector<int>` without including <pybind11/stl.h> will now raise an error with a note that suggests checking the headers. The note is only appended if `std::` is found in the function signature. This should only be the case when a header is missing. E.g. when stl.h is included, the signature would contain `List[int]` instead of `std::vector<int>` while using stl_bind.h would produce something like `MyVector`. Similarly for `std::map`/`Dict`, `complex`, `std::function`/`Callable`, etc. There's a possibility for false positives, but it's pretty low.
-
Gunnar Läthén authored
-
- Sep 11, 2017
-
-
Dean Moldovan authored
Fixes #1069.
-
- Sep 10, 2017
-
-
Dean Moldovan authored
Fixes #1075. `PyNumber_Float()` and `PyNumber_Long()` return new references.
-
Dean Moldovan authored
-
Dean Moldovan authored
To avoid an ODR violation in the test suite while testing both `stl.h` and `std_bind.h` with `std::vector<bool>`, the `py::bind_vector<std::vector<bool>>` test is moved to the secondary module (which does not include `stl.h`).
-
Henry Schreiner authored
[skip appveyor]
-
- Sep 08, 2017
-
-
Dean Moldovan authored
-
Dean Moldovan authored
-
Dean Moldovan authored
This runs the most basic tests first and avoids waiting until the very end for style checks. [skip appveyor]
-
Dean Moldovan authored
* Update Python 3 osx image to xcode8.3 to speed up brew install. The Python 2 osx image remains xcode7.3. * Have one osx config run in debug mode to improve coverage. * Only run CMake build tests on two configs to speed up overall build. The CMake tests take ~30 seconds on each configuration, but we really only need to them to run on two: one on Linux and one on macOS. This mirrors the recent change on AppVeyor. * Merge the style/docs/pip tests with the barebones build. * Merge 32-bit and CMake install configurations. This removes clang 3.9 from testing, but there are already 3 other clang versions being tested on Travis and the new xcode8.3 image should be close to clang 3.9. [skip appveyor]
-
- Sep 07, 2017
-
-
Dean Moldovan authored
[skip ci]
-
- Sep 06, 2017
-
-
Dean Moldovan authored
-
Dean Moldovan authored
Fixes #1061. `T` and `const T &` are compatible types.
-
Dean Moldovan authored
-
Marcin Wojdyr authored
-
- Sep 05, 2017
-
-
Dean Moldovan authored
Closes #1048, closes #1052. [skip ci]
-
Patrik Huber authored
[skip ci]
-
- Sep 02, 2017
-
-
Bruce Merry authored
PR #880 changed the implementation of keep_alive to avoid weak references when the nurse is pybind11-registered, but the documentation didn't get updated to match.
-
- Sep 01, 2017
-
-
Wenzel Jakob authored
[skip ci]
-
- Aug 31, 2017
-
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Dean Moldovan authored
Fixes #1046.
-
Dean Moldovan authored
[skip ci]
-
Ivan Smirnov authored
-
- Aug 30, 2017
-
-
Bruce Merry authored
There are two separate additions: 1. `py::hash(obj)` is equivalent to the Python `hash(obj)`. 2. `.def(hash(py::self))` registers the hash function defined by `std::hash<T>` as the Python hash function.
-
Florian Apolloner authored
-
Dean Moldovan authored
The warning is shown at module initialization time (on import, not when the functions are called). It's only visible when compiled in debug mode.
-
Dean Moldovan authored
This is analogous to `py::init()` vs `__init__` + placement-new. `py::pickle()` reuses most of the implementation details of `py::init()`.
-
- Aug 28, 2017
-
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Dean Moldovan authored
-
Dean Moldovan authored
The lookup of the `self` type and value pointer are moved out of template code and into `dispatcher`. This brings down the binary size of constructors back to the level of the old placement-new approach. (It also avoids a second lookup for `init_instance`.) With this implementation, mixing old- and new-style constructors in the same overload set may result in some runtime overhead for temporary allocations/deallocations, but this should be fine as old style constructors are phased out.
-