Is there an easy way to figure out what the type of an AST Node is? If I
have a node n, doing type(n) doesn't help because it gives me , but what I really want is If, or And, or whatever node type the
node actually is. I could always just look at n.__repr__(), because the repr
for each node type is
Ahh sorry. This was in Python 2.5.
On Sat, Mar 28, 2009 at 1:20 AM, Terry Reedy wrote:
> Nick Edds wrote:
>
>> Is there an easy way to figure out what the type of an AST Node is?
>>
>
> Specify version.
>
> ? If I
>
>> have a node n, doing type(n) doesn