CSV with comments

Sion Arrowsmith siona at chiark.greenend.org.uk
Wed Jul 19 09:22:40 EDT 2006


Daniel Dittmar  <daniel.dittmar at sap.corp> wrote:
>         if line [:1] == '#':

What's wrong with line[0] == '#' ? (For one thing, it's fractionally
faster than [:1].)

-- 
\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