mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-21 14:23:14 +08: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();
|
||||
}
|
||||
|
||||
dtype(const char *format) : dtype(std::string(format)) { }
|
||||
|
||||
dtype(list names, list formats, list offsets, size_t itemsize) {
|
||||
dict args;
|
||||
args["names"] = names;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user