Author gvanrossum
Recipients Igor.Skochinsky, brandtbucher, gvanrossum, hroncok, lys.nikolaou, miss-islington, ned.deily, nnemkin, pablogsal, terry.reedy, vstinner
Date 2020-12-02.01:07:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606871247.42.0.243940618883.issue40939@roundup.psfhosted.org>
In-reply-to
Content
Hm, I wonder if there's a typo here in pythonrun.c:

/* For use in Py_LIMITED_API */
#undef Py_CompileString
PyObject *
PyCompileString(const char *str, const char *filename, int start)
{
    return Py_CompileStringFlags(str, filename, start, NULL);
}

Shouldn't that function be named Py_CompileString (i.e. Py_ instead of Py)?

This seems to be old code, but there's normally a macro Py_CompileString() that translates to Py_CompileStringFlags() in pythonrun.h:

#ifdef Py_LIMITED_API
PyAPI_FUNC(PyObject *) Py_CompileString(const char *, const char *, int);
#else
#define Py_CompileString(str, p, s) Py_CompileStringExFlags(str, p, s, NULL, -1)
#define Py_CompileStringFlags(str, p, s, f) Py_CompileStringExFlags(str, p, s, f, -1)
.
.
.
History
Date User Action Args
2020-12-02 01:07:27gvanrossumsetrecipients: + gvanrossum, terry.reedy, vstinner, ned.deily, nnemkin, Igor.Skochinsky, hroncok, lys.nikolaou, pablogsal, miss-islington, brandtbucher
2020-12-02 01:07:27gvanrossumsetmessageid: <1606871247.42.0.243940618883.issue40939@roundup.psfhosted.org>
2020-12-02 01:07:27gvanrossumlinkissue40939 messages
2020-12-02 01:07:27gvanrossumcreate