Learning Python now coming from Perl
Colin J. Williams
cjw at ncf.ca
Sat Dec 6 16:14:04 CET 2008
Bertilo Wennergren wrote:
> Roy Smith wrote:
>> Bertilo Wennergren <bertilow at gmail.com> wrote:
>>> I'm planning to start learning Python now, using Python 3000.
>>> I have no previous Python skills, but I now Perl pretty well.
>>> Any pointers and tips how I should go about getting into
>> I assume you use Perl to solve real problems in whatever job you do.
>> My recommendation would be the next time some problem comes up that
>> you would normally solve with Perl, try doing it in Python. Having a
>> real task that you need to accomplish is a great way to focus the
>> mind. For your first project, pick something that's small enough that
>> you think you could tackle it in under 50 lines of Perl.
> Good advice.
>> One of the very first things you'll probably discover that's different
>> between Perl and Python is how they handle string pattern matching.
>> In Perl, it's a built in part of the language syntax. In Python, you
>> use the re module. The regular expressions themselves are the same,
>> but the mechanism you use to apply them to input text is quite different.
> I don't suppose there is any introductory material out there
> that is based on Python 3000 and that is also geared at people
> with a Perl background? Too early for that I guess..
This is from a post within the last few
More information about the Python-list