summaryrefslogtreecommitdiff
path: root/Lib/test/test_code.py
AgeCommit message (Collapse)AuthorLines
2009-05-08PyCode_NewEmpty:Jeffrey Yasskin-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.
2008-04-01Add ``if __name__ == '__main__'`` to some test files where it didn't take a lotBrett Cannon-0/+4
of effort to do so.
2006-08-04Bug #1333982: string/number constants were inappropriately storedNeal Norwitz-0/+17
in the byte code and co_consts even if they were not used, ie immediately popped off the stack.
2005-12-25Whitespace normalization.Tim Peters-1/+1
2005-10-20Merge ast-branch to headJeremy Hylton-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.