C/C++, Perl, etc. to Python converter

Michael michael at mustun.ch
Wed Jan 3 17:05:19 CET 2007

Yes, I konw what you mean. And thats the right way to do it - for 
beginners. --But not for someone who allready know programmings things 
for many years.

They ask themself: How can I do this in Python? I can remember, it was 
that-way with Perl or C or C++ or whatever.

So, not only a ververter can be useful, also a translation table.
(Maybe just a table for print out.)

LangX <-> LangY

Matimus wrote:

> I don't know of a converter, one may exist. I have seen similar
> requests though and will give you a similar response to what I have
> seen. A converter, if it exists, may be able to produce working code
> but _not_ readable code. Python is a language whose strength comes
> from, among other things, its readability and conventions. Learning
> python is best done by using the online documentation
> (http://docs.python.org/tut/tut.html) and reading existing code (take a
> look at the built in modules).
> My biggest fear of teaching someone to program by using a program to
> convert perl to python is that they will end up writing python that
> still looks like perl.
> I don't know if it helps, but I know others will give you similar
> advice.
> -Matt

More information about the Python-list mailing list