-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-32255: Fix inconsistent behavior when csv.writer writes None #4769
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
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. Thanks again to your contribution and we look forward to looking at it! |
e651ad3
to
93d4dd1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM besides a small style nitpick.
Please add a Misc/NEWS.d/
entry (manually or using the blurb
tool, see the devguide) and add your name into Misc/ACKS
.
Lib/test/test_csv.py
Outdated
def test_writerows_with_none(self): | ||
with TemporaryFile("w+", newline='') as fileobj: | ||
writer = csv.writer(fileobj) | ||
writer.writerows([['a',None],[None,'d']]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add spaces after commas to conform PEP 8.
Thanks @serhiy-storchaka, fixed! |
@@ -0,0 +1 @@ | |||
Fix inconsistent ``csv.writer`` behavior when it handles ``None`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add "Patch by Licht Takeuchi."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And don't forgot periods at the end of sentences.
6e1c91f
to
c76ab64
Compare
@serhiy-storchaka Fixed! |
Thanks @Licht-T for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6. |
…le. (pythonGH-4769) This allows to distinguish an empty row from a row consisting of a single empty field. (cherry picked from commit 2001900)
GH-4810 is a backport of this pull request to the 3.6 branch. |
See this.
pandas-dev/pandas#18676
https://bugs.python.org/issue32255
I am waiting for the CLA response.
https://bugs.python.org/issue32255