Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7d978902
Commit
7d978902
authored
12 years ago
by
Hynek Schlawack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#14880: Fix kwargs notation in csv.reader, .writer & .register_dialect
Patch by Chris Rebert.
parent
8662c84a
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
Doc/library/csv.rst
Doc/library/csv.rst
+6
-6
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Doc/library/csv.rst
View file @
7d978902
...
...
@@ -57,7 +57,7 @@ Module Contents
The :mod:`csv` module defines the following functions:
.. function:: reader(csvfile
[, dialect='excel'][, fmtparam]
)
.. function:: reader(csvfile
, dialect='excel', **fmtparams
)
Return a reader object which will iterate over lines in the given *csvfile*.
*csvfile* can be any object which supports the :term:`iterator` protocol and returns a
...
...
@@ -67,7 +67,7 @@ The :mod:`csv` module defines the following functions:
*dialect* parameter can be given which is used to define a set of parameters
specific to a particular CSV dialect. It may be an instance of a subclass of
the :class:`Dialect` class or one of the strings returned by the
:func:`list_dialects` function. The other optional *fmtparam* keyword arguments
:func:`list_dialects` function. The other optional *fmtparam
s
* keyword arguments
can be given to override individual formatting parameters in the current
dialect. For full details about the dialect and formatting parameters, see
section :ref:`csv-fmt-params`.
...
...
@@ -94,7 +94,7 @@ The :mod:`csv` module defines the following functions:
be split into lines in a manner which preserves the newline characters.
.. function:: writer(csvfile
[, dialect='excel'][, fmtparam]
)
.. function:: writer(csvfile
, dialect='excel', **fmtparams
)
Return a writer object responsible for converting the user's data into delimited
strings on the given file-like object. *csvfile* can be any object with a
...
...
@@ -103,7 +103,7 @@ The :mod:`csv` module defines the following functions:
parameter can be given which is used to define a set of parameters specific to a
particular CSV dialect. It may be an instance of a subclass of the
:class:`Dialect` class or one of the strings returned by the
:func:`list_dialects` function. The other optional *fmtparam* keyword arguments
:func:`list_dialects` function. The other optional *fmtparam
s
* keyword arguments
can be given to override individual formatting parameters in the current
dialect. For full details about the dialect and formatting parameters, see
section :ref:`csv-fmt-params`. To make it
...
...
@@ -122,11 +122,11 @@ The :mod:`csv` module defines the following functions:
>>> spamWriter.writerow(['Spam', 'Lovely Spam', 'Wonderful Spam'])
.. function:: register_dialect(name[, dialect]
[, fmtparam]
)
.. function:: register_dialect(name[, dialect]
, **fmtparams
)
Associate *dialect* with *name*. *name* must be a string or Unicode object. The
dialect can be specified either by passing a sub-class of :class:`Dialect`, or
by *fmtparam* keyword arguments, or both, with keyword arguments overriding
by *fmtparam
s
* keyword arguments, or both, with keyword arguments overriding
parameters of the dialect. For full details about the dialect and formatting
parameters, see section :ref:`csv-fmt-params`.
...
...
This diff is collapsed.
Click to expand it.
Misc/NEWS
View file @
7d978902
...
...
@@ -378,6 +378,9 @@ Build
Documentation
-------------
-
Issue
#
14880
:
Fix
kwargs
notation
in
csv
.
reader
,
.
writer
&
.
register_dialect
.
Patch
by
Chris
Rebert
.
-
Issue
#
14674
:
Add
a
discussion
of
the
json
module
's standard compliance.
Patch by Chris Rebert.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment