| 260 | } |
| 261 | |
| 262 | Py::String TypePy::getModule() const |
| 263 | { |
| 264 | std::string module(getBaseTypePtr()->getName()); |
| 265 | std::string::size_type pos = module.find_first_of("::"); |
| 266 | |
| 267 | if (pos != std::string::npos) { |
| 268 | module = std::string(module, 0, pos); |
| 269 | } |
| 270 | else { |
| 271 | module.clear(); |
| 272 | } |
| 273 | |
| 274 | return {module}; |
| 275 | } |
| 276 | |
| 277 | PyObject* TypePy::getCustomAttributes(const char* /*attr*/) const |
| 278 | { |