view Python/getplatform.c @ 83960:3a1976680717

Introduce importlib.util.ModuleManager which is a context manager to handle providing (and cleaning up if needed) the module to be loaded. A future commit will use the context manager in Lib/importlib/_bootstrap.py and thus why the code is placed there instead of in Lib/importlib/util.py.
author Brett Cannon <brett@python.org>
date Tue, 28 May 2013 17:29:34 -0400
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

const char *
Py_GetPlatform(void)
{
	return PLATFORM;
}