| 102 | Result<PyObject*> UuidFromBytes(std::string_view bytes, PyObject* kwargs); |
| 103 | |
| 104 | inline bool IsPyBinary(PyObject* obj) { |
| 105 | return PyBytes_Check(obj) || PyByteArray_Check(obj) || PyMemoryView_Check(obj); |
| 106 | } |
| 107 | |
| 108 | // \brief Convert a Python integer into a C integer |
| 109 | // \param[in] obj A Python integer |