Perl-to-Python converter/translator?

Hamish Lawson hamish_lawson at yahoo.co.uk
Fri Feb 2 09:56:39 EST 2001


Tim Peters wrote:

> Sorry, Grant:  simply *parsing* Perl is beyond most peoples' pain
> tolerance; search CPAN for an equivalent to Python's tokenize.py and
> report back on your successes <wink>.

To overcome the expected language incompatibilities between Perl 5 and
the future Perl 6, the language developers are intending to
provide a tool that will migrate existing Perl 5 code to Perl 6. I'm
not sure of the exact details, but I understand that it will make use
of the fact that Perl now has a compiler that can compile to and from
some intermediate format - I presume the scheme being to use the Perl 6
compiler to reconstitute as source code the intermediate code generated
by the Perl 5 compiler. Perhaps it may be possible to reconstitute this
intermediate code as Python source code instead.

Hamish Lawson


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list