Message382287
| 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:27 | gvanrossum | set | recipients:
+ gvanrossum, terry.reedy, vstinner, ned.deily, nnemkin, Igor.Skochinsky, hroncok, lys.nikolaou, pablogsal, miss-islington, brandtbucher |
| 2020年12月02日 01:07:27 | gvanrossum | set | messageid: <1606871247.42.0.243940618883.issue40939@roundup.psfhosted.org> |
| 2020年12月02日 01:07:27 | gvanrossum | link | issue40939 messages |
| 2020年12月02日 01:07:27 | gvanrossum | create |
|