summaryrefslogtreecommitdiffstats
path: root/Modules/symtablemodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Simplify and speedup uses of Py_BuildValue():Raymond Hettinger2003-10-121-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)
* Allow more docstrings to be removed during compilation in some modulesNeal Norwitz2002-08-131-1/+2
|
* Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond2002-08-021-1/+1
| | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
* Fix [ #489673 ] memory leak in test_symtable: Free the st_future slot.Jeremy Hylton2001-12-061-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.
* Export three optimization (fast locals) flagsJeremy Hylton2001-04-161-0/+4
|
* add DEF_BOUND constantJeremy Hylton2001-03-221-0/+1
|
* Relax the rules for using 'from ... import *' and exec in the presenceJeremy Hylton2001-02-091-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.
* Add minimal interface to symtable: _symtable module.Jeremy Hylton2001-02-021-0/+72