view Python/getplatform.c @ 20471:bbdc0abfbb13 legacy-trunk

SF patch #471852 (anonymous) notes that getattr(obj, name, default) masks any exception, not just AttributeError. Fix this.
author Guido van Rossum <guido@python.org>
date Tue, 16 Oct 2001 21:31:32 +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;
}