mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
Added dtype from const char pointer ctor
This commit is contained in:
parent
c6257f8641
commit
ad5ca6d4e6
@ -125,6 +125,8 @@ public:
|
|||||||
m_ptr = from_args(pybind11::str(format)).release().ptr();
|
m_ptr = from_args(pybind11::str(format)).release().ptr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dtype(const char *format) : dtype(std::string(format)) { }
|
||||||
|
|
||||||
dtype(list names, list formats, list offsets, size_t itemsize) {
|
dtype(list names, list formats, list offsets, size_t itemsize) {
|
||||||
dict args;
|
dict args;
|
||||||
args["names"] = names;
|
args["names"] = names;
|
||||||
|
Loading…
Reference in New Issue
Block a user