- 14 Oct, 2016 1 commit
-
-
Add dynamic attribute support
Wenzel Jakob committed
-
- 13 Oct, 2016 6 commits
-
-
Dean Moldovan committed
-
This convenience function ensures that a py::object is either a py::array, or the implementation will try to convert it into one. Layout requirements (such as c_style or f_style) can be also be provided.
Wenzel Jakob committed -
Dean Moldovan committed
-
Permit creation of NumPy arrays with a "base" object that owns the data
Wenzel Jakob committed -
Wenzel Jakob committed
-
Wenzel Jakob committed
-
- 12 Oct, 2016 2 commits
-
-
This patch adds an extra base handle parameter to most ``py::array`` and ``py::array_t<>`` constructors. If specified along with a pointer to data, the base object will be registered within NumPy, which increases the base's reference count. This feature is useful to create shallow copies of C++ or Python arrays while ensuring that the owners of the underlying can't be garbage collected while referenced by NumPy. The commit also adds a simple test function involving a ``wrap()`` function that creates shallow copies of various N-D arrays.
Wenzel Jakob committed -
- This actually works with no changes, I just wasn't 100% convinced and decided to write a test to see if it's true.
Wenzel Jakob committed
-
- 11 Oct, 2016 1 commit
-
-
Dean Moldovan committed
-
- 09 Oct, 2016 6 commits
-
-
Wenzel Jakob committed
-
Wenzel Jakob committed
-
extra python version sanity check at import time
Wenzel Jakob committed -
Python 3.5 can often import pybind11 modules compiled compiled for Python 3.4 (i.e. all symbols can be resolved), but this leads to crashes later on due to changes in various Python-internal data structures. This commit adds an extra sanity check to prevent a successful import when the Python versions don't match.
Wenzel Jakob committed -
Wenzel Jakob committed
-
Wenzel Jakob committed
-
- 08 Oct, 2016 1 commit
-
-
This fixes an issue that can arise when forwarding (*args, **kwargs) captured from a pybind11-bound function call to another Python function. When the initial function call includes no keyword arguments, the py::kwargs field is set to nullptr and causes a crash later on.
Wenzel Jakob committed
-
- 07 Oct, 2016 1 commit
-
-
Wenzel Jakob committed
-
- 02 Oct, 2016 2 commits
-
-
Re-add accessor bool operator
Wenzel Jakob committed -
PR #425 removed the bool operator from attribute accessors. This is likely in use by existing code as it was the only way before #425 added the `hasattr` function to check for the existence of an attribute, via: if (obj.attr("foo")) { ... } This commit adds it back in for attr and item accessors, but with a deprecation warning to use `hasattr(obj, ...)` or `obj.contains(...)` instead.Jason Rhinelander committed
-
- 30 Sep, 2016 2 commits
-
-
Wenzel Jakob committed
-
Wenzel Jakob committed
-
- 29 Sep, 2016 3 commits
-
-
Wenzel Jakob committed
-
Simplify base class detection for Eigen types
Wenzel Jakob committed -
Dean Moldovan committed
-
- 27 Sep, 2016 6 commits
-
-
Wenzel Jakob committed
-
Add in casts for c++11s chrono classes to pythons datetime
Wenzel Jakob committed -
Trent Houliston committed
-
Trent Houliston committed
-
Trent Houliston committed
-
Wenzel Jakob committed
-
- 26 Sep, 2016 1 commit
-
-
Make the accessor interface more complete
Wenzel Jakob committed
-
- 23 Sep, 2016 3 commits
-
-
`auto var = l[0]` has a strange quirk: `var` is actually an accessor and not an object, so any later assignment of `var = ...` would modify l[0] instead of `var`. This is surprising compared to the non-auto assignment `py::object var = l[0]; var = ...`. By overloading `operator=` on lvalue/rvalue, the expected behavior is restored even for `auto` variables.
Dean Moldovan committed -
Dean Moldovan committed
-
Dean Moldovan committed
-
- 22 Sep, 2016 4 commits
-
-
This also adds the `hasattr` and `getattr` functions which are needed with the new attribute behavior. The new functions behave exactly like their Python counterparts. Similarly `object` gets a `contains` method which calls `__contains__`, i.e. it's the same as the `in` keyword in Python.
Dean Moldovan committed -
Dean Moldovan committed
-
Use consistent indentation and typenames in numpy vectorize.
Wenzel Jakob committed -
Dzhelil Rufat committed
-
- 21 Sep, 2016 1 commit
-
-
Fix minor documentation spelling mistakes
Wenzel Jakob committed
-