Author joe.amenta
Recipients joe.amenta
Date 2010-08-08.04:08:16
SpamBayes Score 1.62937e-05
Marked as misclassified No
Message-id <1281240499.35.0.988494777631.issue9541@psf.upfronthosting.co.za>
In-reply-to
Content
In Lib/lib2to3/pytree.py, Node.pre_order() calls the post_order() method of its children, instead of pre_order().  As a result, the only difference between the two orderings is that pre_order() yields the original node first, whereas post_order() yields the original node last.  It seems highly unlikely to me that any code would depend on this behavior.

The fix, of course, is trivial: change the call to child.post_order() on line 289 into a call to child.pre_order().
History
Date User Action Args
2010-08-08 04:08:19joe.amentasetrecipients: + joe.amenta
2010-08-08 04:08:19joe.amentasetmessageid: <1281240499.35.0.988494777631.issue9541@psf.upfronthosting.co.za>
2010-08-08 04:08:17joe.amentalinkissue9541 messages
2010-08-08 04:08:16joe.amentacreate