-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
CSV dialect with delimiter=' ' and skipinitialspace=True #115712
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
Comments
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Feb 20, 2024
…ialspace=True Restore support of such combination, disabled in pythongh-113796. csv.writer() now quotes empty fields if delimiter is a space and skipinitialspace is true and raises exception if quoting is not possible.
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Feb 20, 2024
…kipinitialspace=True (pythonGH-115721) Restore support of such combination, disabled in pythongh-113796. csv.writer() now quotes empty fields if delimiter is a space and skipinitialspace is true and raises exception if quoting is not possible. (cherry picked from commit 937d282) Co-authored-by: Serhiy Storchaka <[email protected]>
serhiy-storchaka
added a commit
that referenced
this issue
Feb 20, 2024
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Feb 20, 2024
…' and skipinitialspace=True (pythonGH-115721) (pythonGH-115729) (cherry picked from commit 5ea86f4) Co-authored-by: Serhiy Storchaka <[email protected]> csv.writer() now quotes empty fields if delimiter is a space and skipinitialspace is true and raises exception if quoting is not possible. (cherry picked from commit 937d282)
serhiy-storchaka
added a commit
that referenced
this issue
Feb 20, 2024
…tialspace=True (GH-115721) (GH-115729) (GH-115738) (cherry picked from commit 5ea86f4) Co-authored-by: Serhiy Storchaka <[email protected]> csv.writer() now quotes empty fields if delimiter is a space and skipinitialspace is true and raises exception if quoting is not possible. (cherry picked from commit 937d282)
woodruffw
pushed a commit
to woodruffw-forks/cpython
that referenced
this issue
Mar 4, 2024
…ialspace=True (pythonGH-115721) Restore support of such combination, disabled in pythongh-113796. csv.writer() now quotes empty fields if delimiter is a space and skipinitialspace is true and raises exception if quoting is not possible.
diegorusso
pushed a commit
to diegorusso/cpython
that referenced
this issue
Apr 17, 2024
…ialspace=True (pythonGH-115721) Restore support of such combination, disabled in pythongh-113796. csv.writer() now quotes empty fields if delimiter is a space and skipinitialspace is true and raises exception if quoting is not possible.
LukasWoodtli
pushed a commit
to LukasWoodtli/cpython
that referenced
this issue
Jan 22, 2025
…ialspace=True (pythonGH-115721) Restore support of such combination, disabled in pythongh-113796. csv.writer() now quotes empty fields if delimiter is a space and skipinitialspace is true and raises exception if quoting is not possible.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Combination of
delimiter=' '
andskipinitialspace=True
was considered illegal in #113796, because it is ambiguous in case of empty fields. But there may be a use case for this, when the input is a preformatted table with a series of spaces considered as a delimiter:Empty fields are not compatible with such format, so the writer should either quote them, or fail if quoting is not possible.
Linked PRs
The text was updated successfully, but these errors were encountered: