|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| 
| | commas in the concrete syntax; checking those causes a segfault.
This fixes SF bug #407394. | 
| | 
| 
| 
| 
| 
| 
| | for errors raised in future.c.
Move some helper functions from compile.c to errors.c and make them
API functions: PyErr_SyntaxLocation() and PyErr_ProgramText(). | 
| | 
| 
| 
| 
| | are legal at the interactive interpreter prompt.  They don't do
anything yet... | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | XXX still need to integrate into symtable API
compile.h: Remove ff_n_simple_stmt; obsolete.
           Add ff_found_docstring used internally to skip one and only
           one string at the beginning of a module.
compile.c: Add check for from __future__ imports to far into the file.
 	   In symtable_global() check for -1 returned from
	   symtable_lookup(), which signifies name not defined.
	   Add missing DECERF in symtable_add_def.
           Free c->c_future.
future.c:  Add special handling for multiple statements joined on a
	   single line using one or more semicolons; this form can
           include an illegal future statement that would otherwise be
           hard to detect.
	   Add support for detecting and skipping doc strings. | 
|  | Makefile.pre.in: add target future.o
Include/compile.h: define PyFutureFeaters and PyNode_Future()
                   add c_future slot to struct compiling
Include/symtable.h: add st_future slot to struct symtable
Python/future.c: implementation of PyNode_Future()
Python/compile.c: use PyNode_Future() for nested_scopes support
Python/symtable.c: include compile.h to pick up PyFutureFeatures decl |