Mercurial > cpython-lru_cache-weakref
annotate Python/getversion.c @ 3166:938c433c876a legacy-trunk
disable code generation for access statement
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 08 Oct 1995 00:42:46 +0000 |
| parents | 237c3b2a6187 |
| children | c7cdd22a4853 |
| rev | line source |
|---|---|
| 2896 | 1 /* Return the full version string. */ |
| 2 | |
| 3101 | 3 #include "Python.h" |
| 4 | |
| 2896 | 5 #include "patchlevel.h" |
| 6 | |
| 7 #define VERSION "%s (%s) %s" | |
| 8 | |
| 9 #ifdef __DATE__ | |
| 10 #define DATE __DATE__ | |
| 11 #else | |
| 12 #define DATE "August 1 1995" | |
| 13 #endif | |
| 14 | |
| 15 extern const char *getcompiler(); | |
| 16 | |
| 17 const char * | |
| 18 getversion() | |
| 19 { | |
| 20 static char version[80]; | |
| 21 sprintf(version, VERSION, PATCHLEVEL, DATE, getcompiler()); | |
| 22 return version; | |
| 23 } |
