You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2019-01-24.10:28:34.304>labels= ['type-bug', 'library', '3.10']
title='csv.DictReader, skipinitialspace does not ignore tabs'updated_at=<Date2021-03-25.22:59:07.428>user='https://bugs.python.org/andrelehmann'
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 (https://docs.python.org/3/library/csv.html).
Unfortunately this works only for spaces but not for tabs which are also whitespaces.
See the following code snippet applied on the attached file:
Sorry, I overlooked the patch. The issue reported is the same in bpo-21297 but the patch was about changing whitespace to space in the doc instead of changing the behavior as I can see from the discussion.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: