Perl -> Python hopeless?

H

Helmut Jarausch

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
 
M

Max Khesin

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 -
(e-mail address removed)
[check out our image compression software at www.cvisiontech.com, JBIG2-PDF
compression @
www.cvisiontech.com/cvistapdf.html]
 
M

Mike Rovner

Helmut Jarausch said:
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, classes are not.
OTOH classes are natural in python and no unnamed code blocks exists.
The list may be continued on and on.

Just .02

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top