[issue1606092] csv module broken for unicode

Craig McQueen report at bugs.python.org
Wed Nov 25 03:48:50 CET 2009


Craig McQueen <ces-pub at mcqueen.id.au> added the comment:

Is this still an open bug? I have the following code:

    lookup = {}
    csv_reader = csv.reader(codecs.open(lookup_file_name, 'r', 'utf-8'))
    for row in csv_reader:
        lookup[row[1]] = row[0]

And it "appears to work" (it runs) using Python 2.6.2. So has this bug
been fixed?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1606092>
_______________________________________


More information about the Python-bugs-list mailing list