PyModule_GetDict(), which is also more flexible: it does not assume that the "module" is a real module.
Attach a file by drag & drop or click to upload