> Programming Languages > Python
Various Topics Home | Disclaimer | Report Adult Posts

Various Topics on Python



Python - "Perl -> Python hopeless?" in Programming Languages


Old 07-18-2003   #1
..lm.. ..raus..
 
Default Perl -> Python hopeless?

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

 
Old 07-18-2003   #2
..x ..es..
 
Default Re: Perl -> Python hopeless?

Answer: I think they are working on somethig that will allow perl lib usage
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
>



 
Old 07-18-2003   #3
.... ..vn..
 
Default Re: Perl -> Python hopeless?

"Helmut Jarausch" <jarausch@skynet.be> wrote in message news:3f182c9a$0$276

> 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




 
Old 07-23-2003   #4
..rtm.. ..eb..
 
Default Re: Perl -> Python hopeless?

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 |

 

Thread Tools
Display Modes





Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0