Mercurial > cpython-lru_cache-weakref
annotate Python/getversion.c @ 3294:2bddfb3cfcf1 legacy-trunk
don't return from main loop when error occurs
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 10 Dec 1995 04:57:42 +0000 |
| parents | c7cdd22a4853 |
| children | f158edccc72c |
| 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 | |
| 3212 | 12 #define DATE "October 13 1995" |
| 2896 | 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 } |
