New submission from Ioan Fintescu: Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import csv >>> s = 'x = "a", y = "b, c"' >>> s 'x = "a", y = "b, c"' >>> for row in csv.reader([s]): print(row) ... ['x = "a"', ' y = "b', ' c"'] >>> len(row) 3 >>> for row1 in csv.reader([s], skipinitialspace=True):print(row1) ... ['x = "a"', 'y = "b', 'c"'] >>> len(row1) 3 >>> s2 = 'x = "a",y="b,c"' >>> s2 'x = "a",y="b,c"' >>> for row2 in csv.reader([s]): print(row2) ... ['x = "a"', ' y = "b', ' c"'] >>> len(row2) 3 >>> for row3 in csv.reader([s], skipinitialspace=True): print(row3) ... ['x = "a"', 'y = "b', 'c"'] >>> len(row3) 3
---------- messages: 256355 nosy: muss priority: normal severity: normal status: open title: csv: unexpected result type: behavior versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25857> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com