This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: csv skipinitialspace no longer working
Type: behavior Stage: resolved
Components: Build Versions: Python 3.7
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: Rudolfo Munguia, andrei.avk
Priority: normal Keywords:

Created on 2020-06-11 22:28 by Rudolfo Munguia, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg371325 - (view) Author: Rudolfo Munguia (Rudolfo Munguia) Date: 2020-06-11 22:28
This was non-obvious at first. Code had written 1 month ago making use of csv.reader to strip leading spaces is failing when I ran it today. My company had updated my installation of python from 3.6 to 3.7 a few weeks back. I have skipinitialspace=True set, but all output still contains leading spaces. I have even checked around several places on the internet where they have "example" code to demonstrate this function -> but all of their examples are now also broken (?)! and contain the leading spaces as well :: https://www.w3resource.com/python-exercises/csv/python-csv-exercise-6.php
msg400137 - (view) Author: Andrei Kulakov (andrei.avk) * (Python triager) Date: 2021-08-23 13:44
I cannot reproduce with 3.7.7, when run with the linked example, the output looks fine:

['country_id', 'country_name', 'region_id']
['AR', 'Argentina', '2']
['AU', 'Australia', '3']
['BE', 'Belgium', '1']
['BR', 'Brazil', '2']
['CA', 'Canada', '2']

I think this can be closed as not a bug unless more detail is provided.
msg402321 - (view) Author: Andrei Kulakov (andrei.avk) * (Python triager) Date: 2021-09-21 15:14
Closing; if anyone finds a way to reproduce please add a comment or open a new issue.
History
Date User Action Args
2022-04-11 14:59:32adminsetgithub: 85123
2021-09-21 15:14:18andrei.avksetstatus: open -> closed
resolution: works for me
messages: + msg402321

stage: resolved
2021-08-23 13:44:28andrei.avksetnosy: + andrei.avk
messages: + msg400137
2020-06-11 22:28:38Rudolfo Munguiacreate