Did you find this page useful? If so, the best way you can show appreciation is by using this link for your Amazon shopping.
Powered by MaxBlogPress 
4

My Notes On Learning Python Coming From Perl


Posted by Artem Russakovskii on October 9th, 2008 in Programming

Updated: November 5th, 2008

4 Responses to “My Notes On Learning Python Coming From Perl”

    4 Comments:
  1. василий says:

    Python 2.6 has been released on October 1st. The major theme of this release is preparing the migration path to Python 3.0, a major redesign of the language. Whenever possible, Python 2.6 incorporates new features and syntax from 3.0 while remaining compatible with existing code by not removing older features or syntax. See the what's new docs for more details.

  2. nikolao says:

    Tuples are also more efficient than lists, which was a bigger deal with the state of computers back in the early years of Python.

    For a nice modern object system in Perl 5, take a look at Moose in CPAN or at the following address.

    http://www.iinteractive.com/moose/

  3. 1. I find the $%@ sigils don't give too much meaning when you spend a lot of time passing references to things that you have to 're-cast' back to whatever they're referencing. The sigils mostly end up being a way to introduce obnoxious cleverness like "in a scalar context, this object/expression is this, while in an array context, it's that…".

    2. The simple 'in' operator should be mentioned before has_key or __contains__.

    3. 'for' in python acts as 'foreach', same as how 'for' is just an alias for 'foreach' in perl

  4. Thanks Travis, all your points are duly noted. I still only semi-agree with (1) but I'm sure I'll change my mind as I keep using Python.

Leave a Reply