mirror of
https://github.com/python/cpython.git
synced 2026-06-22 19:12:50 -04:00
6fd4c8ec77
It combines PyImport_ImportModule() and PyObject_GetAttrString() and saves 4-6 lines of code on every use. Add also _PyImport_GetModuleAttr() which takes Python strings as arguments.