-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
gh-67230: add quoting rules to csv module #29469
Conversation
I looked to try and find the real people behind the BPO accounts "samwyse" and "krypten" but couldn't. I have no idea how to verify at least krypten has signed a CLA. |
This PR is stale because it has been open for 30 days with no activity. |
@smontanaro, FWIW, according to the BPO user database, both of those users are registered as having signed the PSF CLA. |
You don't have empty quote '' in either of your tests:
Hence I don't know if the code change produces the correct result. |
@smontanaro, Is the CLA Signing waiting on me? |
Nope, all good, it just needed a new CI run to be retriggered, which I've just done by closing and reopening the PR :) |
We need to fish or cut bait on this PR. |
Why is merging blocked. These quoting types are essential for Microsoft warehousing CSV loading. Is there anyone form MS to push this to get better support for their loaders. CSV is broad format and these quoting types would fill some holes for special loaders without enough parameters to allow CSV prepared with Python. |
Because only core developers can merge, and the one responsible for the csv module seems to go on vacation. |
Is there any chance for this to land in 3.12? |
I realize that this is over a year old, but only noticed it today...
Change the test_csv.py to the following:
Not so! They differ in the treatment of numeric values. QUOTE_STRINGS would not quote numbers, so 1 is output as 1, while with QUOTE_NOTNULL it is output as "1".
Let me see what I can do. |
Improve tests of QUOTE_STRINGS and QUOTE_NOTNULL
Improve descriptions of QUOTE_NOTNULL and QUOTE_STRINGS with writer objects. Add descriptions for reader objects.
Fix issue 23041
Misc/NEWS.d/next/Library/2021-11-07-15-31-25.bpo-23041.564i32.rst
Outdated
Show resolved
Hide resolved
@smontanaro: Status check is done, and it's a failure or timed out ❌. |
@smontanaro: Status check is done, and it's a failure or timed out ❌. |
1 similar comment
@smontanaro: Status check is done, and it's a failure or timed out ❌. |
Status check is done, and it's a success ✅. |
Add two quoting styles for csv dialects. They will help to work with certain databases in particular. Automerge-Triggered-By: GH:merwok
@GPHemsley pointed out that with the recent changes in python#29469, two new data items failed to get `versionadded` notes.
…114816) As @GPHemsley pointed out, #29469 omitted `versionadded` notes for the 2 new items.
…RINGS (pythonGH-114816) As @GPHemsley pointed out, pythonGH-29469 omitted `versionadded` notes for the 2 new items. (cherry picked from commit 586057e) Co-authored-by: Skip Montanaro <[email protected]>
…TRINGS (GH-114816) (#114840) As @GPHemsley pointed out, GH-29469 omitted `versionadded` notes for the 2 new items. (cherry picked from commit 586057e) Co-authored-by: Skip Montanaro <[email protected]>
…RINGS (python#114816) As @GPHemsley pointed out, python#29469 omitted `versionadded` notes for the 2 new items.
Add two quoting styles for csv dialects.
They will help to work with certain databases in particular.
Automerge-Triggered-By: GH:merwok