view Python/getplatform.c @ 18228:4ebd292c975f legacy-trunk

Disallow 'yield' in a 'try' block when there's a 'finally' clause. Derived from Thomas Wouters's patch on the Iterators list, but doesn't try to read c->c_block[c->c_nblocks].
author Tim Peters <tim.peters@gmail.com>
date Sat, 23 Jun 2001 02:07:08 +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;
}