Perl is worse!

Steve Lamb grey at despair.rpglink.com
Sun Jul 30 20:59:28 EDT 2000


On Sun, 30 Jul 2000 16:29:42 +0200, Alex Martelli <alex at magenta.com> wrote:
>When the format string is expressed as an inline constant you can see it in
>place, but you don't have the other advantages (such as

    Non-issue.  You were expressing your format string as a variable and the
same can happen with variables in line.

>When you end with % vars(), there is no substantial difference.
>When you use the more substantial flexibility allowed by using
>other mapping-objects, if that flexibility is needed, then the
>advantages are many -- see above for a *beginning* to them.

    No, there is no difference.  What you have is a format string with named
placeholders in-line.  You have to define the variables ahead of time.

    I have the same.  

    Difference is you still have to tack on the variables to the end,
regardless of what form they take.

>That's what I would have liked to do, but often couldn't because
>Perl might not be installed on some target-machines, sigh.  At
>least, Bourne-shell could be counted on at the time.

    Aside from Solaris pre-8, what is left that doesn't?  

>for line in fileinput.input():
>    if cre.match(line): print line

>currently makes me even happier:-).

    True.


-- 
         Steve C. Lamb         | I'm your priest, I'm your shrink, I'm your
         ICQ: 5107343          | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------



More information about the Python-list mailing list