gh-138005: Document that CSV skipinitialspace=True and delimiter=' ' require quotation for empty fields#138006
Conversation
serhiy-storchaka
left a comment
There was a problem hiding this comment.
I think this is too verbose. The note takes up a lot of space and attracts a disproportionate amount of attention. Most users will never encounter this, and if they do, this behavior is expected and therefore does not require any special explanation.
Could you please limit yourself to one short sentence? That such CSV files cannot contain empty fields.
Thank you for taking a look. Made it much shorter: |
sharktide
left a comment
There was a problem hiding this comment.
LGTM
And thanks for fixing the typo :)
…iter=' '` require quotation for empty fields (pythonGH-138006) (cherry picked from commit e0f54a6) Co-authored-by: Maurycy Pawłowski-Wieroński <5383+maurycy@users.noreply.github.com>
…iter=' '` require quotation for empty fields (pythonGH-138006) (cherry picked from commit e0f54a6) Co-authored-by: Maurycy Pawłowski-Wieroński <5383+maurycy@users.noreply.github.com>
|
GH-138798 is a backport of this pull request to the 3.14 branch. |
|
GH-138799 is a backport of this pull request to the 3.13 branch. |
Please see for the code:
cpython/Modules/_csv.c
Lines 1253 to 1267 in 7dc42b6
Please see the test:
The behavior is intentional since gh-115721, so the only sensible route is to update the docs.
skipinitialspace=Trueanddelimiter=' 'require quotation for empty fields #138005📚 Documentation preview 📚: https://cpython-previews--138006.org.readthedocs.build/