Python Risk

Mark Hadfield m.hadfield at niwa.cri.nz
Thu May 10 18:37:44 EDT 2001


From: "Bjorn Pettersen" <BPettersen at NAREX.com>

> So you would want to add _all_ that syntax just to save a single '\'
> character in typing <wink>.

Surely you mean a single '\\'.

The Python interpreter obviously agrees with me that strings look better
without '\'s where possible (oops sorry I mean '\\\'s'):

>>> "\""
'"'
>>> '\''
"'"

> I mean how often do you have quotes in your
> strings...

Quite often when constructing command lines for os.system etc. But then I
use Windows.

And-anyway-Fortran-does-it-that-way'ly y'rs

---
Mark Hadfield
m.hadfield at niwa.cri.nz  http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research


-- 
Posted from clam.niwa.cri.nz [202.36.29.1] 
via Mailgate.ORG Server - http://www.Mailgate.ORG



More information about the Python-list mailing list