Re: Python for Perl programmers

2006-05-05 Thread Christoph Haas
On Thu, May 04, 2006 at 12:02:52PM -0400, A.M wrote:
 Is there any efficient online resource or book that help experienced Perl 
 programmers to Python?

I've been using Perl for a decade and had a hard start into Python. Mainly
because I used those phrasebooks and tried to convert my Perl syntax
statement-by-statement. However Python doesn't just have another syntax but
also other concepts. It's worth working yourself through the diveintopython
tutorial. Or if you want to spend money I strongly recommend the book
Beginning Python: From Novice to Professional (ISBN 159059519X) because
you learn a lot about daily problems and gotchas, too.

Besides from the I'm cool because I'm the only one who can read my code
factor that Perl delivers Python has everything you need. :)

Kindly
 Christoph
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for Perl programmers

2006-05-05 Thread bruno at modulix
A.M wrote:
 Hi,
 
 Is there any efficient online resource or book that help experienced Perl 
 programmers to Python?
 

My fellow coworker - experimented Perl coder - confirms that the
official tutorial and diveintopython should be enough to get you
started. Also, the Python Cookbook and reading this group may help you
grasp pythonic idioms.

-- 
bruno desthuilliers
python -c print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for Perl programmers

2006-05-05 Thread Thomas Guettler
Am Thu, 04 May 2006 12:02:52 -0400 schrieb A.M:

 Hi,
 
 
 
 Is there any efficient online resource or book that help experienced Perl 
 programmers to Python?

You can try the examples of pleac:

http://pleac.sourceforge.net/pleac_python/index.html

This is the Per Cookbook translated into several languages.

 Thomas

-- 
Thomas Güttler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
Spam Catcher: [EMAIL PROTECTED]

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for Perl programmers

2006-05-05 Thread Alex Martelli
John J. Lee [EMAIL PROTECTED] wrote:

 A.M [EMAIL PROTECTED] writes:
 
  Is there any efficient online resource or book that help experienced Perl
  programmers to Python?
 
 Worry instead about how you're going to keep maintaining your Perl
 code after you've developed an allergic response to it.

Nah, that's easy -- you port it to Python (that's what I did back in the
day, and I've heard at least three others relate similar choices).


Alex
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for Perl programmers

2006-05-05 Thread John J. Lee
[EMAIL PROTECTED] (Alex Martelli) writes:

 John J. Lee [EMAIL PROTECTED] wrote:
 
  A.M [EMAIL PROTECTED] writes:
  
   Is there any efficient online resource or book that help experienced Perl
   programmers to Python?
  
  Worry instead about how you're going to keep maintaining your Perl
  code after you've developed an allergic response to it.
 
 Nah, that's easy -- you port it to Python (that's what I did back in the
 day, and I've heard at least three others relate similar choices).

Or, in my case, throwing away the Perl I had because I found I had
written something much more useful in Python.

A little bit of experience on a smallish (or largish!) from-scratch
Python project does of course make a difference: Perl and Python are
sufficiently close in many things that it's easy to get tunnel vision
when porting Perl to Python.  A little knowledge of Python idioms,
techniques, standard library modules, etc., gained outside of that
narrow context, goes a long way to prevent that.

OTOH, the often-mechanical nature of porting .pl-.py, and the great
flexibility of both languages, does certainly make it easier to
switch.


John

-- 
http://mail.python.org/mailman/listinfo/python-list


Python for Perl programmers

2006-05-04 Thread A.M
Hi,



Is there any efficient online resource or book that help experienced Perl 
programmers to Python?



Thank you,

Alan


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for Perl programmers

2006-05-04 Thread Aahz
In article [EMAIL PROTECTED],
A.M [EMAIL PROTECTED] wrote:

Is there any efficient online resource or book that help experienced Perl 
programmers to Python?

Don't use the Martin Brown book, whatever you do.  The Perl/Python
Phrasebook isn't bad, but it's ten years out of date.  Really, your best
bet is to just dive into the Python tutorial.
-- 
Aahz ([EMAIL PROTECTED])   * http://www.pythoncraft.com/

Argue for your limitations, and sure enough they're yours.  --Richard Bach
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for Perl programmers

2006-05-04 Thread John J. Lee
A.M [EMAIL PROTECTED] writes:

 Is there any efficient online resource or book that help experienced Perl 
 programmers to Python?

Worry instead about how you're going to keep maintaining your Perl
code after you've developed an allergic response to it.

0.5 wink


John

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for Perl programmers

2006-05-04 Thread Andrew Gwozdziewycz

On May 4, 2006, at 12:36 PM, Aahz wrote:

 In article [EMAIL PROTECTED],
 A.M [EMAIL PROTECTED] wrote:

 Is there any efficient online resource or book that help  
 experienced Perl
 programmers to Python?

I'd recommend http://www.diveintopython.org since you know how to  
program already. It's free!


---
Andrew Gwozdziewycz
[EMAIL PROTECTED]
http://ihadagreatview.org
http://and.rovir.us


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for Perl programmers

2006-05-04 Thread Paddy
I found this version of the phrasebook:
 http://wiki.python.org/moin/PerlPhrasebook
its been edited recently but I didn't check for how current it is.

-- Pad.

-- 
http://mail.python.org/mailman/listinfo/python-list