]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-131885: Update documented signatures for `csv.{writer,reader}` (GH-136085...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Jun 2025 13:38:57 +0000 (15:38 +0200)
committerGitHub <noreply@github.com>
Mon, 30 Jun 2025 13:38:57 +0000 (13:38 +0000)
gh-131885: Update documented signatures for `csv.{writer,reader}` (GH-136085)
(cherry picked from commit 75f40595e555e7d016cf9d2da8aaddb78bb20b2f)

Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
Doc/library/csv.rst

index 246999c64e4d68da54a50f27f9f3f23784cdd95c..d39c4ca4a5838be20a7f46102aba237258b3efdf 100644 (file)
@@ -53,7 +53,7 @@ The :mod:`csv` module defines the following functions:
 .. index::
    single: universal newlines; csv.reader function
 
-.. function:: reader(csvfile, dialect='excel', **fmtparams)
+.. function:: reader(csvfile, /, dialect='excel', **fmtparams)
 
    Return a :ref:`reader object <reader-objects>` that will process
    lines from the given *csvfile*.  A csvfile must be an iterable of
@@ -84,7 +84,7 @@ The :mod:`csv` module defines the following functions:
       Spam, Lovely Spam, Wonderful Spam
 
 
-.. function:: writer(csvfile, dialect='excel', **fmtparams)
+.. 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