From: Adam Dangoor Date: Mon, 30 Jun 2025 13:32:51 +0000 (+0100) Subject: gh-131885: Update documented signatures for `csv.{writer,reader}` (GH-136085) X-Git-Tag: v3.15.0a1~1135 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75f40595e555e7d016cf9d2da8aaddb78bb20b2f;p=thirdparty%2FPython%2Fcpython.git gh-131885: Update documented signatures for `csv.{writer,reader}` (GH-136085) --- diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index 246999c64e4d..d39c4ca4a583 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -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 ` 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