mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 17:32:37 +00:00
ab92eb3765
The array(const buffer_info &info) constructor fails when given complex types since their format string is 'Zd' or 'Zf' which has a length of two and causes an error here: if (info.format.size() != 1) throw std::runtime_error("Unsupported buffer format!"); Fixed by allowing format sizes of one and two. |
||
---|---|---|
.. | ||
cast.h | ||
common.h | ||
complex.h | ||
functional.h | ||
numpy.h | ||
operators.h | ||
pybind11.h | ||
pytypes.h | ||
stl.h | ||
typeid.h |