The Guru

Bill Campbell bill at celestial.com
Tue May 27 13:32:14 PDT 2008


On Tue, May 27, 2008, Jay R. Ashworth wrote:
>On Mon, May 26, 2008 at 10:42:56AM -0400, Fairlight wrote:
>> I'd consider changing to Python (or at least exploring it) if it weren't
>> for the time investment that would be lost in having learned Perl.  Already
>> did that once when I (mostly) dropped C.  There's also the question of
>> losing access to the vast resources of CPAN, which are both significant and
>> overrated at the same time.  I say overrated, because as with SourceForge,
>> too many modules see a pre-alpha or an alpha, and then you never hear from
>> the authors again.  There's a lot of semi-useless crap out there to sort
>> through. 
>
>Python has it's own, much smaller, library called (I think) PEAR -- or
>maybe that's PHP's.  But keep in mind that with the upcoming April-Fool
>inspired Grand Unificaation, you'll probably be able to use CPAN
>modules from Python anyway.

PEAR is php.

The standard python library is quite comprehensive, and I rarely
have to go looking for extra python stuff compared to going to
CPAN quite frequently to get things.

	http://docs.python.org/lib/lib.html

A basic difference between python and perl is that python doesn't
have a lot loaded by default, while perl loads the kitchen sink.
In python one imports only what your script needs.  Most scripts
I do ``import os, sys, re'' near the top to get the basic things
I use in pretty much any scripts (os -- POSIX utilities, sys --
is system specific, and re -- regular expressions (perl compatible).

Bill
-- 
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:          (206) 236-1676  Mercer Island, WA 98040-0820
Fax:            (206) 232-9186

What's this script do?
    unzip ; touch ; finger ; mount ; gasp ; yes ; umount ; sleep
Hint for the answer: not everything is computer-oriented. Sometimes you're
in a sleeping bag, camping out.
(Contributed by Frans van der Zande.)


More information about the Filepro-list mailing list