Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 17228:32fb6643adf1 legacy-trunk
Bug fix: compile() called from a nested-scopes-enable Python was not
using nested scopes to compile its argument. Pass compiler flags
through to underlying compile call.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Mon, 26 Mar 2001 19:53:38 +0000 |
| parents | 215dc725db84 |
| children | 097dd953e119 9dda0c11e006 |
comparison
equal
deleted
inserted
replaced
| 17227:3eb8d7259969 | 17228:32fb6643adf1 |
|---|---|
| 1096 node *n; | 1096 node *n; |
| 1097 PyCodeObject *co; | 1097 PyCodeObject *co; |
| 1098 n = PyParser_SimpleParseString(str, start); | 1098 n = PyParser_SimpleParseString(str, start); |
| 1099 if (n == NULL) | 1099 if (n == NULL) |
| 1100 return NULL; | 1100 return NULL; |
| 1101 co = PyNode_Compile(n, filename); | 1101 co = PyNode_CompileFlags(n, filename, flags); |
| 1102 PyNode_Free(n); | 1102 PyNode_Free(n); |
| 1103 return (PyObject *)co; | 1103 return (PyObject *)co; |
| 1104 } | 1104 } |
| 1105 | 1105 |
| 1106 struct symtable * | 1106 struct symtable * |
