|
|||||
|
|
#1 |
|
|
having been a Perl fan for years I have nearly converted to Python. Still, there are LOTS and very good modules written in Perl. Is there a tool to lesson the burdon of translation of Perl to Python? I am completely aware of the fact that a fully automatic translation to readable Python source is hard if not impossible. But such a tool could lots of the tedious work like replacing braces by proper indentation and and similar things. Thanks for a pointer (if there is one) -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany |
|
|
#2 |
|
|
in python. Question: Can someone in the know drop a line? -- ======================================== Max Khesin, software developer - max@cNvOiSsPiAoMntech.com [check out our image compression software at www.cvisiontech.com, JBIG2-PDF compression @ www.cvisiontech.com/cvistapdf.html] "Helmut Jarausch" <jarausch@skynet.be> wrote in message news:3f182c9a$0$276$ba620e4c@reader0.news.skynet.b e... > Hi, > having been a Perl fan for years I have nearly converted to Python. > Still, there are LOTS and very good modules written in Perl. > > Is there a tool to lesson the burdon of translation of Perl to Python? > I am completely aware of the fact that a fully automatic translation > to readable Python source is hard if not impossible. > But such a tool could lots of the tedious work like replacing > braces by proper indentation and and similar things. > > Thanks for a pointer (if there is one) > > -- > Helmut Jarausch > > Lehrstuhl fuer Numerische Mathematik > RWTH - Aachen University > D 52056 Aachen, Germany > |
|
|
#3 |
|
|
> having been a Perl fan for years I have nearly converted to Python. I went the same way, happy with python now and never looked back. > Still, there are LOTS and very good modules written in Perl. > Is there a tool to lesson the burdon of translation of Perl to Python? IMHO language differences leads to different style and I found that rewriting is better than semi-automatic translation. I had a project first implemented in perl, than rewrote in python. Some idioms are completely different, for ex. code blocks in perl are natural, cl***es are not. OTOH cl***es are natural in python and no unnamed code blocks exists. The list may be continued on and on. Just .02 Mike |
|
|
#4 |
|
|
Helmut Jarausch schrieb:
> Is there a tool to lesson the burdon of translation of Perl to Python? You may try bridgekeeper (http://www.crazy-compilers.com/bridgekeeper/). But typically it' better to completly rewrite the code since Python offers different features. Regards Hartmut Goebel -- | Hartmut Goebel | IT-Security -- effizient | | h.goebel@goebel-consult.de | www.goebel-consult.de | |