[pypy-svn] r35557 - pypy/dist/pypy/rlib/parsing
radix at codespeak.net
radix at codespeak.net
Sun Dec 10 17:52:20 CET 2006
Author: radix
Date: Sun Dec 10 17:52:20 2006
New Revision: 35557
Modified:
pypy/dist/pypy/rlib/parsing/tree.py
Log:
make the __repr__ output of Nonterminal match the actual initialization order.
Modified: pypy/dist/pypy/rlib/parsing/tree.py
==============================================================================
--- pypy/dist/pypy/rlib/parsing/tree.py (original)
+++ pypy/dist/pypy/rlib/parsing/tree.py Sun Dec 10 17:52:20 2006
@@ -44,7 +44,7 @@
return "%s(%s)" % (self.symbol, ", ".join([str(c) for c in self.children]))
def __repr__(self):
- return "Nonterminal(%r, %r)" % (self.children, self.symbol)
+ return "Nonterminal(%r, %r)" % (self.symbol, self.children)
def dot(self):
yield '"%s" [label="%s"];' % (id(self), self.symbol)
More information about the Pypy-commit
mailing list