[issue35816] csv.DictReader, skipinitialspace does not ignore tabs

2021-03-25 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) versions: +Python 3.10 -Python 3.5 ___ Python tracker ___ ___

[issue35816] csv.DictReader, skipinitialspace does not ignore tabs

2019-01-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry, I overlooked the patch. The issue reported is the same in issue21297 but the patch was about changing whitespace to space in the doc instead of changing the behavior as I can see from the discussion. --

[issue35816] csv.DictReader, skipinitialspace does not ignore tabs

2019-01-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://bugs.python.org/issue21297#msg216907 to be related and has a patch. It refers to whitespace as only space ('U+0020') with tabs being ignored. Current code where only space is taken into account :

[issue35816] csv.DictReader, skipinitialspace does not ignore tabs

2019-01-24 Thread André Lehmann
New submission from André Lehmann : When using the csv.DictReader a dialect can be given to change the behavior of interpretation of the csv file. The Dialect has an option "skipinitialspace" which shall ignore the whitespace after the delimiter according to the documentation