Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. explicit operator std::string() const {
  2. Object as_bytes{ convert_to(PyBytes_Type) };
  3. return std::string( PyBytes_AsString(as_bytes.p), static_cast<size_t>( PyBytes_Size(as_bytes.p) ) );
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement