• Skip Montanaro's avatar
    Make the fieldnames argument optional in the DictReader. If self.fieldnames · dffeed3f
    Skip Montanaro yazdı
    is None, the next row read is used as the fieldnames.  In the common case,
    this means the programmer doesn't need to know the fieldnames ahead of time.
    The first row of the file will be used.  In the uncommon case, this means
    the programmer can set the reader's fieldnames attribute to None at any time
    and have the next row read as the next set of fieldnames, so a csv file can
    contain several "sections", each with different fieldnames.
    dffeed3f
libcsv.tex 13.1 KB