Message 292665 - Python tracker

Message292665

Author louielu
Recipients Julian, benjamin.peterson, brett.cannon, louielu, vstinner
Date 2017-05-01.14:50:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493650215.09.0.00342972824863.issue15987@psf.upfronthosting.co.za>
In-reply-to
Content
Provide a recursive way to compare AST nodes, it will compare with fields, but no attributes.


The performance compare with ast.dump methods in unittest


# Recursive compare
./python -m unittest test.test_ast.ASTCompareTest
......
----------------------------------------------------------------------
Ran 6 tests in 0.669s

OK

# ast.dump compare
./python -m unittest test.test_ast.ASTCompareTest
......
----------------------------------------------------------------------
Ran 6 tests in 2.192s
History
Date User Action Args
2017-05-01 14:50:15louielusetrecipients: + louielu, brett.cannon, vstinner, benjamin.peterson, Julian
2017-05-01 14:50:15louielusetmessageid: <1493650215.09.0.00342972824863.issue15987@psf.upfronthosting.co.za>
2017-05-01 14:50:15louielulinkissue15987 messages
2017-05-01 14:50:15louielucreate