[issue9621] Graphviz output for 2to3 fixer patterns

2010-12-02 Thread Matt Bond
Matt Bond added the comment: Sorry for the delay in responding, and for getting this patch cleaned up and submitted. While I was going through my code to submit it, I found a couple of additional issues with it. Then I ended up becoming very busy with my grad courses. As a result, I haven&#

[issue9621] Graphviz output for 2to3 fixer patterns

2010-09-29 Thread Matt Bond
Matt Bond added the comment: Huh. I must have diffed the wrong version of my code - how embarrassing! I'll update the attached patch later this week. Thanks for catching that. -- ___ Python tracker <http://bugs.python.org/i

[issue9621] Graphviz output for 2to3 fixer patterns

2010-09-22 Thread Matt Bond
Matt Bond added the comment: As requested, attached is the output for the fix_buffer fixer, as an example of the kind of output this patch can produce. -- Added file: http://bugs.python.org/file18968/fix_buf_pytree_1.png ___ Python tracker <h

[issue9621] Graphviz output for 2to3 fixer patterns

2010-09-21 Thread Matt Bond
Matt Bond added the comment: Éric, When I was working with 2to3 this summer I was running it via python3, so I think the patch should work - however, if I've submitted it to the wrong place or the wrong branch, where should I be looking at to ensure my code does work on 3.2 and is subm

[issue9621] Graphviz output for 2to3 fixer patterns

2010-08-16 Thread Matt Bond
New submission from Matt Bond : 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 usin

[issue8029] bug in 2to3 dealing with "print FOO, " followed by "sys.stdout.write('')"

2010-04-07 Thread Matt Bond
Matt Bond added the comment: I've attached a patch that fixes this particular idiom as well as a problem with the handling of bare 'print' statements. It also includes updated tests for these issues. -- keywords: +patch nosy: +zxaos Added file: http://bugs.pytho