Hi,
Is there any efficient online resource or book that help experienced Perl
programmers to Python?
Thank you,
Alan 9 1604
In article <Xx************ *******@news20. bellglobal.com> ,
A.M <al******@newsg roup.nospam> 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 (aa**@pythoncra ft.com) <*> http://www.pythoncraft.com/
"Argue for your limitations, and sure enough they're yours." --Richard Bach
"A.M" <al******@newsg roup.nospam> 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
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 "phrasebook s" 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
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 'o****@xiludom. gro'.split('@')])"
John J. Lee <jj*@pobox.co m> wrote: "A.M" <al******@newsg roup.nospam> 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 al*****@yahoo.c om (Alex Martelli) writes: John J. Lee <jj*@pobox.co m> wrote:
"A.M" <al******@newsg roup.nospam> 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Brandon J. Van Every |
last post by:
What's better about Ruby than Python? I'm sure there's something. What is
it?
This is not a troll. I'm language shopping and I want people's answers. I
don't know beans about Ruby or have any preconceived ideas about it. I have
noticed, however, that every programmer I talk to who's aware of Python is
also talking about Ruby. So it seems that Ruby has the potential to compete
with and displace Python. I'm curious on what basis it...
|
by: mike420 |
last post by:
I think everyone who used Python will agree that its syntax is
the best thing going for it. It is very readable and easy
for everyone to learn. But, Python does not a have very good
macro capabilities, unfortunately. I'd like to know if it may
be possible to add a powerful macro system to Python, while
keeping its amazing syntax, and if it could be possible to
add Pythonistic syntax to Lisp or Scheme, while keeping all
of the...
|
by: Stephen C. Waterbury |
last post by:
This seems like it ought to work, according to the
description of reduce(), but it doesn't. Is this
a bug, or am I missing something?
Python 2.3.2 (#1, Oct 20 2003, 01:04:35)
on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> d1 = {'a':1}
>>> d2 = {'b':2}
>>> d3 = {'c':3}
|
by: Michael McGarry |
last post by:
Hi,
I am just starting to use Python. Does Python have all the regular
expression features of Perl?
Is Python missing any features available in Perl?
Thanks,
Michael
|
by: surfunbear |
last post by:
I've read some posts on Perl versus Python and studied a bit of my
Python book.
I'm a software engineer, familiar with C++ objected oriented
development, but have been using Perl because it is great for pattern
matching, text processing, and automated testing. Our company is really
fixated on risk managnemt and the only way I can do enough testing
without working overtime (which some people have ended up doing) is by
automating my...
| |
by: Mothra |
last post by:
Hi All,
I am the current author of the Astro-Sunrise perl module
http://search.cpan.org/~rkhill/Astro-Sunrise-0.91/Sunrise.pm
and was wondering if it would be worth while to convert it to python.
First off, I have never programmed in python. I would like to use
this project to learn python. I was wondering if there was a
"How to program python for perl programmers" Kinda
like what is different between the two, pitfalls for perl...
|
by: Lad |
last post by:
Is anyone capable of providing Python advantages over PHP if there are
any?
Cheers,
L.
|
by: Edward Elliott |
last post by:
This is just anecdotal, but I still find it interesting. Take it for what
it's worth. I'm interested in hearing others' perspectives, just please
don't turn this into a pissing contest.
I'm in the process of converting some old perl programs to python. These
programs use some network code and do a lot of list/dict data processing.
The old ones work fine but are a pain to extend. After two conversions,
the python versions are...
|
by: Dan Jacobson |
last post by:
Can I feel even better about using perl vs. python, as apparently
python's dependence of formatting, indentation, etc. vs. perl's
"(){};" etc. makes writing python programs perhaps very device
dependent. Whereas perl can be written on a tiny tiny screen, and can
withstand all kinds of users with various disabilities, etc.?
Also perl is easier to squeeze into makefiles.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |