| 81 | } |
| 82 | |
| 83 | std::string GetFullyQualifiedName(py::handle h) |
| 84 | { |
| 85 | py::handle type = h.get_type(); |
| 86 | |
| 87 | std::ostringstream ss; |
| 88 | ss << type.attr("__module__").cast<std::string>() << '.' << type.attr("__qualname__").cast<std::string>(); |
| 89 | return ss.str(); |
| 90 | } |
| 91 | |
| 92 | static std::string ProcessBufferInfoFormat(const std::string &fmt) |
| 93 | { |