> OR just names:
> Node(import_name, [Leaf(1, 'import'), Node(dotted_as_name, [Node
> (dotted_name, [Leaf(1, 'foo'), Leaf(23, '.'), Leaf(1, 'bar')]), Leaf
> (1, 'as'), Leaf(1, 'bang')])])
This is the one I prefer.
Regards,
Martin
___
Python-Dev maili
Sounds good!
On Wed, Mar 19, 2008 at 10:04 PM, David Wolever <[EMAIL PROTECTED]> wrote:
> Would anyone be averse to changing pytree.Node's __repr__ so it
> includes the name of the name of the symbol the node represents?
>
> The only downside is that it makes the __reprs__ longer... But I
> thi
Would anyone be averse to changing pytree.Node's __repr__ so it
includes the name of the name of the symbol the node represents?
The only downside is that it makes the __reprs__ longer... But I
think its worth the length:
Node(313:simple_stmt, [Node(298:import_name, [Leaf(1, 'import'), Node