Staging
v0.5.1
https://github.com/python/cpython
Revision 9d8b8c3ed2c672e0f0d5248a86972c6788f0701d authored by Miss Islington (bot) on 16 July 2020, 16:30:19 UTC, committed by GitHub on 16 July 2020, 16:30:19 UTC
(cherry picked from commit 0275e0452a773976827c2b9bd1e598ee08e2d7f5)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
1 parent 961703c
Raw File
Tip revision: 9d8b8c3ed2c672e0f0d5248a86972c6788f0701d authored by Miss Islington (bot) on 16 July 2020, 16:30:19 UTC
Fix trivial typo in the PEG string parser (GH-21508)
Tip revision: 9d8b8c3
getversion.c

/* Return the full version string. */

#include "Python.h"

#include "patchlevel.h"

const char *
Py_GetVersion(void)
{
    static char version[250];
    PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s",
                  PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
    return version;
}
back to top