summaryrefslogtreecommitdiff
path: root/Modules/symtablemodule.c
AgeCommit message (Collapse)AuthorLines
2013-10-26just return toplevel symbol table rather than all blocks (closes #19393)Benjamin Peterson-1/+1
2012-10-30initialize more global type objects (closes #16369)Benjamin Peterson-0/+3
2010-05-09Untabify C files. Will watch buildbots.Antoine Pitrou-57/+57
2009-06-23remove some unused symtable constantsBenjamin Peterson-4/+0
2008-08-17get the symtable module back in working orderBenjamin Peterson-0/+3
- Fix broken functions - Add (hopefully) extensive tests - Modernize a little
2006-01-19Check return result from Py_InitModule*(). This API can fail.Neal Norwitz-0/+2
Probably should be backported.
2005-10-20Merge ast-branch to headJeremy Hylton-3/+5
This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests.
2003-10-12Simplify and speedup uses of Py_BuildValue():Raymond Hettinger-1/+2
* Py_BuildValue("(OOO)",a,b,c) --> PyTuple_Pack(3,a,b,c) * Py_BuildValue("()",a) --> PyTuple_New(0) * Py_BuildValue("O", a) --> Py_INCREF(a)
2002-08-13Allow more docstrings to be removed during compilation in some modulesNeal Norwitz-1/+2
2002-08-02Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond-1/+1
for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
2001-12-06Fix [ #489673 ] memory leak in test_symtable: Free the st_future slot.Jeremy Hylton-0/+1
The st_future slot of the symtable is not freed by PySymtable_Free() because it is shared by the symtable and compiling structs in compiel.c. Since it is shared, it is explicitly deallocated when the compiling struct is freed.
2001-04-16Export three optimization (fast locals) flagsJeremy Hylton-0/+4
2001-03-22add DEF_BOUND constantJeremy Hylton-0/+1
2001-02-09Relax the rules for using 'from ... import *' and exec in the presenceJeremy Hylton-1/+1
of nested functions. Either is allowed in a function if it contains no defs or lambdas or the defs and lambdas it contains have no free variables. If a function is itself nested and has free variables, either is illegal. Revise the symtable to use a PySymtableEntryObject, which holds all the revelent information for a scope, rather than using a bunch of st_cur_XXX pointers in the symtable struct. The changes simplify the internal management of the current symtable scope and of the stack. Added new C source file: Python/symtable.c. (Does the Windows build process need to be updated?) As part of these changes, the initial _symtable module interface introduced in 2.1a2 is replaced. A dictionary of PySymtableEntryObjects are returned.
2001-02-02Add minimal interface to symtable: _symtable module.Jeremy Hylton-0/+72