Import and return a module or throws `error_already_set`.
| 1664 | |
| 1665 | /// Import and return a module or throws `error_already_set`. |
| 1666 | static module_ import(const char *name) { |
| 1667 | PyObject *obj = PyImport_ImportModule(name); |
| 1668 | if (!obj) { |
| 1669 | throw error_already_set(); |
| 1670 | } |
| 1671 | return reinterpret_steal<module_>(obj); |
| 1672 | } |
| 1673 | |
| 1674 | /// Reload the module or throws `error_already_set`. |
| 1675 | void reload() { |
no outgoing calls