Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- explicit operator std::string() const {
- Object as_bytes{ convert_to(PyBytes_Type) };
- return std::string( PyBytes_AsString(as_bytes.p), static_cast<size_t>( PyBytes_Size(as_bytes.p) ) );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement