Re: question about csv.DictReader

2013-04-04 Thread Norman Clerman
Thanks for your replies. Greatly appreciated. Norm -- http://mail.python.org/mailman/listinfo/python-list

Re: question about csv.DictReader

2013-04-03 Thread Tim Chase
On 2013-04-03 18:26, Norman Clerman wrote: > Can anyone explain the presence of the characters "\xref\xbb\xbf" > before the first field contents "Holdings" ? (you mean "\xef", not "\xref") This is a byte-order-mark (BOM), which you can read about at [1]. In this case, it denotes the file as UTF-

Re: question about csv.DictReader

2013-04-03 Thread MRAB
On 04/04/2013 02:26, Norman Clerman wrote: Hello, I have the following python script (some of lines are wrapped): #! /usr/bin/env python import csv def dict_test_1(): """ csv test program """ # Open the file Holdings_EXA.csv HOLDING_FILE = 'Holdings_EXA.csv' try:

question about csv.DictReader

2013-04-03 Thread Norman Clerman
Hello, I have the following python script (some of lines are wrapped): #! /usr/bin/env python import csv def dict_test_1(): """ csv test program """ # Open the file Holdings_EXA.csv HOLDING_FILE = 'Holdings_EXA.csv' try: csv_file = open(HOLDING_FILE, 'rt') except I