[Python-checkins] python/dist/src/Include ast.h,1.1.2.3,1.1.2.4
jhylton at users.sourceforge.net
jhylton at users.sourceforge.net
Wed Apr 21 13:45:47 EDT 2004
- Previous message: [Python-checkins] python/dist/src/Python ast.c, 1.1.2.49,
1.1.2.50 pythonrun.c, 2.161.2.12, 2.161.2.13
- Next message: [Python-checkins] python/dist/src/Lib/idlelib CodeContext.py, NONE,
1.1 NEWS.txt, 1.33, 1.34 config-extensions.def, 1.12, 1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5803/Include
Modified Files:
Tag: ast-branch
ast.h
Log Message:
Improved error handling inside ast.c; fixes test_syntax.
Add ast_error() that captures line number of error and
ast_finish_error() to assign filename and location. It's a little
complicated this way, but less intrusive than passing the filename to
every ast function that might raise an exception.
Need to pass filename to PyAST_FromNode() for error handling.
Index: ast.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/Attic/ast.h,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** ast.h 20 Mar 2004 21:28:22 -0000 1.1.2.3
--- ast.h 21 Apr 2004 17:45:08 -0000 1.1.2.4
***************
*** 5,9 ****
#endif
! extern DL_IMPORT(mod_ty) PyAST_FromNode(const node *, PyCompilerFlags *flags);
#ifdef __cplusplus
--- 5,10 ----
#endif
! extern DL_IMPORT(mod_ty) PyAST_FromNode(const node *, PyCompilerFlags *flags,
! const char *);
#ifdef __cplusplus
- Previous message: [Python-checkins] python/dist/src/Python ast.c, 1.1.2.49,
1.1.2.50 pythonrun.c, 2.161.2.12, 2.161.2.13
- Next message: [Python-checkins] python/dist/src/Lib/idlelib CodeContext.py, NONE,
1.1 NEWS.txt, 1.33, 1.34 config-extensions.def, 1.12, 1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list