Mercurial > cpython-lru_cache-weakref
view Python/getversion.c @ 17997:27f2422ea335 legacy-trunk
Change cascaded if stmts to switch stmt in vgetargs1().
In the default branch, keep three ifs that are used if level == 0, the
most common case. Note that first if here is a slight optimization
for the 'O' format.
Second part of SF patch 426072.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Tue, 29 May 2001 17:46:19 +0000 |
| parents | 6f6f965c5e2d |
| children | 379fc66f4c96 |
line wrap: on
line source
/* Return the full version string. */ #include "Python.h" #include "patchlevel.h" const char * Py_GetVersion(void) { static char version[250]; sprintf(version, "%.80s (%.80s) %.80s", PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler()); return version; }
