[pypy-dev] Re: Printing a Flowgraph

Brian C. Lum bclum at cs.ucsd.edu
Tue Apr 11 05:16:13 CEST 2006

Thanks a lot.  Your way worked perfectly.

I just downloaded version 0.8.0 of pypy.  In that version, they use 
translation.py.  I was not sure whether the document was referring to a 
newer or older version, so I just included the extra information in case.


On Mon, 10 Apr 2006, Michael Hudson wrote:

> "Brian C. Lum" <bclum at cs.ucsd.edu> writes:
>> Dear Pypy developers:
>> I was reading how you generate a flowgraph with Pypy from the
>> getting-started page.  I was just wondering if anyone knew how to
>> print that graph once it displays.
>> I don't really have much experience with Graphviz.  Is there a way to
>> save the graphviz file or print it to a .ps?
> Well, the dot file will probably be lurking in /tmp/usession-*/
> somewhere.  I don't know if there's an "official" way of getting hold
> of it, though.
> One you have the dot file, "dot -Tps flow.dot > flow.ps && lp flow.ps"
> or whatever should work fine.
>> http://codespeak.net/pypy/dist/pypy/doc/getting-started.html#trying-out-the-translator
>> Thanks!
>> Brian
>> Just an FYI, if you want to try to follow the directions, they're a
>> little bit outdated.  To run it (after installing Pygame), start the
>> interactive translator:
>> cd pypy/bin
>> python translator.py
>> and to view a sample code:
>>>>> t = Translation(test.is_perfect_number)
>>>>> t.view()
> I'm not sure what you're referring to.  The docs you linked to look
> correct to me (i.e. there is no bin/translator.py any more in svn).
> Cheers,
> mwh

More information about the Pypy-dev mailing list