internal static void Shutdown()
{
if (0 != Runtime.Py_IsInitialized())
{
Type type = typeof(Exceptions);
foreach (FieldInfo fi in type.GetFields(BindingFlags.Public |
BindingFlags.Static))
{
IntPtr op = (IntPtr)fi.GetValue(type);
if (op != IntPtr.Zero)
{
Runtime.XDecref(op);
}
}
Runtime.XDecref(exceptions_module);
Runtime.PyObject_HasAttrString(warnings_module, "xx");
Runtime.XDecref(warnings_module);
}
}