mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix symbol table pass to generation SyntaxError exceptions that
include the filename and line number.
This commit is contained in:
parent
dbfb66296c
commit
5acc0c0cfc
2 changed files with 48 additions and 33 deletions
|
@ -43,6 +43,7 @@ extern "C" {
|
|||
struct symtable {
|
||||
int st_pass; /* pass == 1 or 2 */
|
||||
int st_keep; /* true if symtable will be returned */
|
||||
char *st_filename; /* name of file being compiled */
|
||||
PyObject *st_symbols; /* dictionary of symbol tables */
|
||||
PyObject *st_varnames; /* dictionary of parameter lists */
|
||||
PyObject *st_stack; /* stack of namespace info */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue