Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csv skipinitialspace no longer working #85123

Closed
RudolfoMunguia mannequin opened this issue Jun 11, 2020 · 3 comments
Closed

csv skipinitialspace no longer working #85123

RudolfoMunguia mannequin opened this issue Jun 11, 2020 · 3 comments
Labels
3.7 (EOL) end of life build The build process and cross-build type-bug An unexpected behavior, bug, or error

Comments

@RudolfoMunguia
Copy link
Mannequin

RudolfoMunguia mannequin commented Jun 11, 2020

BPO 40951
Nosy @akulakov

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 = None
closed_at = <Date 2021-09-21.15:14:18.409>
created_at = <Date 2020-06-11.22:28:38.089>
labels = ['type-bug', '3.7', 'build']
title = 'csv skipinitialspace no longer working'
updated_at = <Date 2021-09-21.15:14:18.409>
user = 'https://bugs.python.org/RudolfoMunguia'

bugs.python.org fields:

activity = <Date 2021-09-21.15:14:18.409>
actor = 'andrei.avk'
assignee = 'none'
closed = True
closed_date = <Date 2021-09-21.15:14:18.409>
closer = 'andrei.avk'
components = ['Build']
creation = <Date 2020-06-11.22:28:38.089>
creator = 'Rudolfo Munguia'
dependencies = []
files = []
hgrepos = []
issue_num = 40951
keywords = []
message_count = 3.0
messages = ['371325', '400137', '402321']
nosy_count = 2.0
nosy_names = ['Rudolfo Munguia', 'andrei.avk']
pr_nums = []
priority = 'normal'
resolution = 'works for me'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue40951'
versions = ['Python 3.7']

@RudolfoMunguia
Copy link
Mannequin Author

RudolfoMunguia mannequin commented Jun 11, 2020

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

@RudolfoMunguia RudolfoMunguia mannequin added 3.7 (EOL) end of life build The build process and cross-build type-bug An unexpected behavior, bug, or error labels Jun 11, 2020
@akulakov
Copy link
Contributor

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.

@akulakov
Copy link
Contributor

Closing; if anyone finds a way to reproduce please add a comment or open a new issue.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.7 (EOL) end of life build The build process and cross-build type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant