Odd syntax tree construct
Andrew Wilkinson
ajw126NO at SPAMyork.ac.uk
Sun Feb 9 12:28:31 EST 2003
Hi,
When creating the syntax tree the compiler module produces some odd output
in sre_parse.py. Line 190 is just a return statement with no return value,
but the syntax tree produced is Return(Const(None)). Note that that is
actually a None object, not Name('None').
Why is this, most of the time it seems to generate Return() as you'd expect.
Thanks in advance,
Andrew Wilkinson
---
You tried your best and you've failed miserably.
The lesson is, never try.
More information about the Python-list
mailing list