don't understand popen2

Sion Arrowsmith siona at chiark.greenend.org.uk
Fri Mar 24 10:58:21 EST 2006


Kent Johnson  <kent at kentsjohnson.com> wrote:
>Sion Arrowsmith wrote:
>> (and please avoid the abuse of raw strings for Windows paths).
>Why do you consider that abuse of raw strings?

I consider it abuse because it's not what they were invented for.
I consider discouraging it to be a good thing in order to reduce
the chances of people being bitten by, for instance:

>>> os.listdir(r"C:\")
  File "<stdin>", line 1
    os.listdir(r"C:\")
                     ^
SyntaxError: EOL while scanning single-quoted string

and getting all confused on this group.

-- 
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump



More information about the Python-list mailing list