Added dtype from const char pointer ctor

This commit is contained in:
Ivan Smirnov 2016-07-25 00:58:17 +01:00
parent c6257f8641
commit ad5ca6d4e6
1 changed files with 2 additions and 0 deletions

View File

@ -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;