Mercurial > cpython-lru_cache-weakref
view Python/getversion.c @ 3610:d0a97ac25dab legacy-trunk
Removed some done "to do" items.
Changed #ifdef DEBUG slightly.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 24 May 1996 20:49:24 +0000 |
| parents | c7cdd22a4853 |
| children | f158edccc72c |
line wrap: on
line source
/* Return the full version string. */ #include "Python.h" #include "patchlevel.h" #define VERSION "%s (%s) %s" #ifdef __DATE__ #define DATE __DATE__ #else #define DATE "October 13 1995" #endif extern const char *getcompiler(); const char * getversion() { static char version[80]; sprintf(version, VERSION, PATCHLEVEL, DATE, getcompiler()); return version; }
