blob: a45f9d86248ecd9f4cf54dba5286887af2d1cd6b (
plain)
1
2
3
4
|
Switch to the abstract API when dealing with ``PyInterpreterState.modules``.
This allows later support for all dict subclasses and other Mapping
implementations. Also add a ``PyImport_GetModule()`` function to reduce
a bunch of duplicated code.
|