summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_code.py
Commit message (Collapse)AuthorAgeFilesLines
* PyCode_NewEmpty:Jeffrey Yasskin2009-05-081-1/+15
| | | | | | | | Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New are trying to build an empty code object, usually to put it in a dummy frame object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify just the filename, function name, and first line number, instead of also requiring lots of code internals.
* Add ``if __name__ == '__main__'`` to some test files where it didn't take a lotBrett Cannon2008-04-011-0/+4
| | | | of effort to do so.
* Bug #1333982: string/number constants were inappropriately storedNeal Norwitz2006-08-041-0/+17
| | | | | in the byte code and co_consts even if they were not used, ie immediately popped off the stack.
* Whitespace normalization.Tim Peters2005-12-251-1/+1
|
* Merge ast-branch to headJeremy Hylton2005-10-201-0/+85
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.