view Python/getplatform.c @ 44038:d44fffda2cd0 legacy-trunk

Expose Py_Py3kWarningFlag as sys.py3kwarning as discussed in #1504 Also added a warning.warnpy3k() as convenient method for Python 3.x related deprecation warnings.
author Christian Heimes <christian@cheimes.de>
date Tue, 27 Nov 2007 23:16:44 +0000
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

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