Python for Perl programmers?

Markus Dehmann markus.cl at gmx.de
Tue Sep 21 04:20:07 CEST 2004


I am using perl for everything, even bigger programs, with objects,
uh, modules and stuff. I know pretty much every trick in perl and have
a lot of experience.

But I'd like to try a cleaner language, where you don't have to type
so much crap to create a class etc. So, I wanna give python a try.

Is there a tutorial that takes all the standard perl things and then
explains how to do them in python? That would be perfect. Open a file,
take all the words, put them in a hash, do something with them, print
the result in a formatted way, write it to a new file etc. Create a
class that downloads newsgroups, etc. Things like that.

I don't need long explanations, but just the perl code and the
corresponding python code. Maybe that even helps seeing: ah, python is
much cleaner, or shorter, or whatever.

I mean, if I want to learn French and I already know a lot about
languages, it's probably good not to learn all the grammar, but just
to take an English book and the French translation, and learn from it.
I want to do the same to learn python.

Thanks for every hint!
Markus



More information about the Python-list mailing list