Staging
v0.8.1
https://github.com/python/cpython
Revision 2e0760bb2edb595050aff82f236cd32b44d3dfb3 authored by Irit Katriel on 04 December 2020, 21:22:03 UTC, committed by GitHub on 04 December 2020, 21:22:03 UTC
This can happen when a file was edited after it was imported.
1 parent 8d4f57d
Raw File
Tip revision: 2e0760bb2edb595050aff82f236cd32b44d3dfb3 authored by Irit Katriel on 04 December 2020, 21:22:03 UTC
bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633)
Tip revision: 2e0760b
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