This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gmattbond
Recipients facundobatista, gmattbond, loewis
Date 2010-08-16.15:39:53
SpamBayes Score 5.8456573e-12
Marked as misclassified No
Message-id <1281973199.06.0.194769344976.issue9621@psf.upfronthosting.co.za>
In-reply-to
Content
As part of my GSoC project working on 2to3, I've created a script which will allow compiled fixer patterns to be visualized using graphviz. This would be useful for debugging and understanding exactly how patterns are matched. I've written using the 2to3 sandbox as my base.

The script is named pat2dot and is found in the scripts directory. The script currently relies on an external graphviz library (I provided bindings for the GvGen library with this patch), they are separated enough from the rest of the code that it would be trivial to create a class that would work using a different graphviz library. Additionally, since the code is never called within 2to3 proper, this dependency will only appear if you wish to use pat2dot, and will not affect any other usages of lib2to3.

Usage of the script is `python pat2dot.py fixername` where fixername is any fixer provided in 2to3, as named by 2to3's -l option.
History
Date User Action Args
2010-08-16 15:39:59gmattbondsetrecipients: + gmattbond, loewis, facundobatista
2010-08-16 15:39:59gmattbondsetmessageid: <1281973199.06.0.194769344976.issue9621@psf.upfronthosting.co.za>
2010-08-16 15:39:56gmattbondlinkissue9621 messages
2010-08-16 15:39:56gmattbondcreate