view Python/getplatform.c @ 78026:e86330669bb5

Issue #15056: imp.cache_from_source() and source_from_cache() raise NotimplementedError when sys.implementation.cache_tag is None. Thanks to Pranav Ravichandran for taking an initial stab at the patch.
author Brett Cannon <brett@python.org>
date Mon, 09 Jul 2012 13:58:07 -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;
}