Re: Learning Python now coming from Perl

2008-12-09 Thread Nick Craig-Wood
Roy Smith [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Nick Craig-Wood [EMAIL PROTECTED] wrote: My favourite mistake when I made the transition was calling methods without parentheses. In perl it is common to call methods without parentheses - in python this does

Re: Learning Python now coming from Perl

2008-12-09 Thread Roy Smith
Nick Craig-Wood [EMAIL PROTECTED] wrote: On the other hand, leaving out the parens returns the function itself, which you can then call later. I've often used this to create data-driven logic. I didn't say it wasn't useful, just that if you came from Perl like I did, it is an easy

Re: Learning Python now coming from Perl

2008-12-09 Thread J. Cliff Dyer
On Sun, 2008-12-07 at 11:05 +0900, Bertilo Wennergren wrote: Aahz wrote: In article [EMAIL PROTECTED], Bertilo Wennergren [EMAIL PROTECTED] wrote: 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

Re: Learning Python now coming from Perl

2008-12-08 Thread Nick Craig-Wood
Bertilo Wennergren [EMAIL PROTECTED] wrote: I'm planning to start learning Python now, using Python 3000. I have no previous Python skills, but I now Perl pretty well. I'm also well experienced with JavaScript. Any pointers and tips how I should go about getting into Python? Read Dive

Re: Learning Python now coming from Perl

2008-12-08 Thread Roy Smith
In article [EMAIL PROTECTED], Nick Craig-Wood [EMAIL PROTECTED] wrote: My favourite mistake when I made the transition was calling methods without parentheses. In perl it is common to call methods without parentheses - in python this does absolutely nothing! pychecker does warn about it

Learning Python now coming from Perl

2008-12-06 Thread Bertilo Wennergren
I'm planning to start learning Python now, using Python 3000. I have no previous Python skills, but I now Perl pretty well. I'm also well experienced with JavaScript. Any pointers and tips how I should go about getting into Python? -- Bertilo Wennergren http://bertilow.com --

Re: Learning Python now coming from Perl

2008-12-06 Thread Roy Smith
In article [EMAIL PROTECTED], Bertilo Wennergren [EMAIL PROTECTED] wrote: I'm planning to start learning Python now, using Python 3000. I have no previous Python skills, but I now Perl pretty well. I'm also well experienced with JavaScript. Any pointers and tips how I should go about

Re: Learning Python now coming from Perl

2008-12-06 Thread Bertilo Wennergren
Roy Smith wrote: Bertilo Wennergren [EMAIL PROTECTED] wrote: I'm planning to start learning Python now, using Python 3000. I have no previous Python skills, but I now Perl pretty well. I'm also well experienced with JavaScript. Any pointers and tips how I should go about getting into

Re: Learning Python now coming from Perl

2008-12-06 Thread Colin J. Williams
Bertilo Wennergren wrote: Roy Smith wrote: Bertilo Wennergren [EMAIL PROTECTED] wrote: I'm planning to start learning Python now, using Python 3000. I have no previous Python skills, but I now Perl pretty well. I'm also well experienced with JavaScript. Any pointers and tips how I should

Re: Learning Python now coming from Perl

2008-12-06 Thread Steven D'Aprano
On Sat, 06 Dec 2008 08:50:20 -0500, Roy Smith wrote: For your first project, pick something that's small enough that you think you could tackle it in under 50 lines of Perl. Is there anything which *can't* be written in under 50 lines of Perl? :-) One of the very first things you'll

Re: Learning Python now coming from Perl

2008-12-06 Thread Aahz
In article [EMAIL PROTECTED], Bertilo Wennergren [EMAIL PROTECTED] wrote: 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.. Honestly, the differences between 2.x and

Re: Learning Python now coming from Perl

2008-12-06 Thread News123
I fully agree with Roy's answer. COding small tasks is a good starting point. For quite some time you'll be of course less efficient than with your previous language, but that's part of the learning curve, isn't it. I guess you'll learn the syntax rather quickly. What's more painful is to learn

Re: Learning Python now coming from Perl

2008-12-06 Thread Roy Smith
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Aahz) wrote: In article [EMAIL PROTECTED], Bertilo Wennergren [EMAIL PROTECTED] wrote: 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

Re: Learning Python now coming from Perl

2008-12-06 Thread Martin P. Hellwig
News123 wrote: What's more painful is to learn which functianilty is in which library and which library exists. cut Yes and one mistake I still often find myself doing is, when confronted with a particular problem, that I write some helper code to deal with it. Of course later on I discover

Re: Learning Python now coming from Perl

2008-12-06 Thread Roy Smith
In article [EMAIL PROTECTED], Steven D'Aprano [EMAIL PROTECTED] wrote: On Sat, 06 Dec 2008 08:50:20 -0500, Roy Smith wrote: For your first project, pick something that's small enough that you think you could tackle it in under 50 lines of Perl. Is there anything which *can't* be

Re: Learning Python now coming from Perl

2008-12-06 Thread Rainy
On Dec 6, 5:00 am, Bertilo Wennergren [EMAIL PROTECTED] wrote: I'm planning to start learning Python now, using Python 3000. I have no previous Python skills, but I now Perl pretty well. I'm also well experienced with JavaScript. Any pointers and tips how I should go about getting into

Re: Learning Python now coming from Perl

2008-12-06 Thread Carl Banks
On Dec 6, 12:30 pm, Roy Smith [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Aahz) wrote: In article [EMAIL PROTECTED], Bertilo Wennergren  [EMAIL PROTECTED] wrote: I don't suppose there is any introductory material out there that is based on Python 3000 and

Re: Learning Python now coming from Perl

2008-12-06 Thread Steven D'Aprano
On Sat, 06 Dec 2008 14:15:28 -0500, Roy Smith wrote: In article [EMAIL PROTECTED], Steven D'Aprano [EMAIL PROTECTED] wrote: On Sat, 06 Dec 2008 08:50:20 -0500, Roy Smith wrote: For your first project, pick something that's small enough that you think you could tackle it in under 50

Re: Learning Python now coming from Perl

2008-12-06 Thread Python Nutter
Perl Cookbook for Python Programmers: http://pleac.sourceforge.net/pleac_python/index.html P3K as starting point (slight cringe) as long as you know the caveats. I'm of the mind as Christopher with regard to how Python 3.0 has been released on Python.org: I don't think that Python 3.0 is a bad

Re: Learning Python now coming from Perl

2008-12-06 Thread Python Nutter
In article [EMAIL PROTECTED], Steven D'Aprano [EMAIL PROTECTED] wrote: Well, as an old-time unix hacker (who learned REs long before Perl existed), my question to you would be, Is there any problem which *shouldn't* be solved with an RE? :-) One of the reasons REs don't get used in Python

Re: Learning Python now coming from Perl

2008-12-06 Thread Bertilo Wennergren
Aahz wrote: In article [EMAIL PROTECTED], Bertilo Wennergren [EMAIL PROTECTED] wrote: 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.. Honestly, the

Re: Learning Python now coming from Perl

2008-12-06 Thread MRAB
Bertilo Wennergren wrote: Aahz wrote: In article [EMAIL PROTECTED], Bertilo Wennergren [EMAIL PROTECTED] wrote: 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

Re: Learning Python now coming from Perl

2008-12-06 Thread Roy Smith
In article [EMAIL PROTECTED], Python Nutter [EMAIL PROTECTED] wrote: At least if you push REs inform the readers where to get the a RE GUI builder written in Python so they can build and *test* the complex and unwieldy REs to perform anything beyond the basic pattern searches. Oh, my, I

Re: Learning Python now coming from Perl

2008-12-06 Thread Aahz
In article [EMAIL PROTECTED], Bertilo Wennergren [EMAIL PROTECTED] wrote: The main reason I waited until Python 3000 came out is the new way Unicode is handled. The old way seemed really broken to me. Much of what I do when I program consists of juggling Unicode text (real Unicode text with lots