The debian-private mailing list leak, part 1. Volunteers have complained about Blackmail. Lynchings. Character assassination. Defamation. Cyberbullying. Volunteers who gave many years of their lives are picked out at random for cruel social experiments. The former DPL's girlfriend Molly de Blanc is given volunteers to experiment on for her crazy talks. These volunteers never consented to be used like lab rats. We don't either. debian-private can no longer be a safe space for the cabal. Let these monsters have nowhere to hide. Volunteers are not disposable. We stand with the victims.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dchanges, architecture component, parseable filenames



Rob Browning writes:
>
>>>>>> "B" == Bruce Perens <bruce@Pixar.com> writes:
>
>Sorry if this is a bit off topic, but I've been wondering about this
>for a while, and your discussion brought it up again.
>
>Do you think python is flexible enough to be an effective replacement
>for perl?  I just started looking at the docs, and it looks quite
>impressive, but it's hard to get a feel for how easy/hard python might
>make some of the complicated grepping/regexp/file manipulation stuff
>that perl does well (even if in an ugly manner).  Also, is python
>comparable in speed?

The basic answer is yes.

The modules that come with python do everything that perl does.  regex
module provides regular expression stuff (there is also a pregex for
posix regular expressions but I havn't used that).  String module for
all the standard string operations (join/split/translate). There is a
Posix module which provides all the standard posix system calls.  Glob
module for file name globbing (and dosn't use csh).  Complex data
structures are much easier to produce and manipulate (basic data types
are lists, tuples, dictionarys, strings, integers, long integers,
floats + a clean object system).

Some people don't like the indentation sets the block structure but
you quickly get used to it and even like it.

Speed wise it is about the same as perl.  Start-up times seems to be
faster as it stores away the byte-compiled code from modules.

The big win is that I could read, understand and learn from code in
standard modules after only a short time.  I use python for all my
"sys admin" programs on my machine (getting/sending news, stuffing
incoming mail into the right places, backup scripts).

So I like it ....

... and thrice daily do I PRAY to the great gods of PYTHON and their
prophet Guido, making sacrifical offerings [SPAM] and chanting the
holy words [dead parrot sketch] and ritually cursing the DEVIL spawn
PERL and JAVA :-)

Andy.