CSV Reader

Mike P michael.pearmain at tangozebra.com
Tue Feb 12 05:37:13 EST 2008


just saw i needed to change record.startswith to row.startswith
but i get hte following traceback error

Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\pythonwin\pywin\framework
\scriptutils.py", line 310, in RunScript
    exec codeObject in __main__.__dict__
  File "Y:\technical\Research\E2C\Template_CSV\import CSV test.py",
line 10, in <module>
    if not start_line and row.startswith('Transaction ID'):
AttributeError: 'list' object has no attribute 'startswith'



More information about the Python-list mailing list