Is Python as capable as Perl for sysadmin work?

Roy Smith roy at panix.com
Wed Feb 9 08:56:57 EST 2005


In article <4209b8a4$0$223$edfadb0f at dread12.news.tele.dk>,
 Max M <maxm at mxm.dk> wrote:

> Jeff Epler wrote:
> > No.
> > 
> > Unlike Perl, Python implements only a *finite turning machine* model of
> > computation.  An easy way to see this limitation is in the following
> > code:
> >     >>> 1.0 / 10.0
> >     0.10000000000000001
> > In an infinite Turning machine, there would be an unbounded number of
> > zeros before the second 1, giving the exact result, not a numeric
> > approximation.
> 
> Another thing is that in Perl it turns left, while in Python it turns 
> right. hence the .rfind() string method.
> 
> 
> > Well, if you ever
> > have to threaten Python, just keep in mind that '... or die' just plain
> > won't work.  You have to suggest that it 'try ... except', which is
> > really offensive.  If I want to beg my computer to run programs, I know
> > where to find Intercal with its "PLEASE" and "DO PLEASE" constructions.
> 
> Wasn't there talk about a "try harder" recently?
> 
> try:
>      statement
> tryharder:
>      statement

How about the Yoda version:

do:
   statement
do not do:
   statement



More information about the Python-list mailing list