summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_transformer.py
Commit message (Collapse)AuthorAgeFilesLines
* #7092: silence py3k warnings for deprecated modulesEzio Melotti2010-01-301-0/+3
|
* use assert[Not]IsInstance where appropriateEzio Melotti2010-01-241-3/+3
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-3/+0
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-0/+3
| | | | Patch by flox
* compiler.transformer: correct lineno attribute when possibleJeremy Hylton2004-09-071-3/+1
| | | | | | | | | | | | | | | | SF patch #1015989 The basic idea of this patch is to compute lineno attributes for all AST nodes. The actual implementation lead to a lot of restructing and code cleanup. The generated AST nodes now have an optional lineno argument to constructor. Remove the top-level asList(), since it didn't seem to serve any purpose. Add an __iter__ to ast nodes. Use isinstance() instead of explicit type tests. Change transformer to use the new lineno attribute, which replaces three lines of code with one. Use universal newlines so that we can get rid of special-case code for line endings. Use lookup_node() in a few more frequently called, but simple com_xxx methods(). Change string exception to class exception.
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-22/+22
|
* this is patchMichael W. Hudson2004-07-121-0/+37
[ 988698 ] compiler.transformer fix for (a, b) = 1, 2 fixing bug [ 988613 ] compiler.transformer and tuple unpacking