view Python/getplatform.c @ 21170:2dfc600f99ce legacy-trunk

unpack_iterable(): Add a missing DECREF in an error case. Reported by Armin Rigo (SF bug #488477). Added a testcase to test_unpack_iter() in test_iter.py.
author Guido van Rossum <guido@python.org>
date Mon, 03 Dec 2001 19:33:25 +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;
}