]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-138005: Document that CSV `skipinitialspace=True` and `delimiter=' '` requi...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 11 Sep 2025 15:18:25 +0000 (17:18 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Sep 2025 15:18:25 +0000 (15:18 +0000)
Co-authored-by: Maurycy Pawłowski-Wieroński <5383+maurycy@users.noreply.github.com>
Doc/library/csv.rst

index d39c4ca4a5838be20a7f46102aba237258b3efdf..4242fc51ab395c3f383c5f76797a502867132c81 100644 (file)
@@ -467,7 +467,8 @@ Dialects support the following attributes:
 .. attribute:: Dialect.skipinitialspace
 
    When :const:`True`, spaces immediately following the *delimiter* are ignored.
-   The default is :const:`False`.
+   The default is :const:`False`.  When combining ``delimiter=' '`` with
+   ``skipinitialspace=True``, unquoted empty fields are not allowed.
 
 
 .. attribute:: Dialect.strict
@@ -636,7 +637,7 @@ done::
 .. rubric:: Footnotes
 
 .. [1] If ``newline=''`` is not specified, newlines embedded inside quoted fields
-   will not be interpreted correctly, and on platforms that use ``\r\n`` linendings
+   will not be interpreted correctly, and on platforms that use ``\r\n`` line endings
    on write an extra ``\r`` will be added.  It should always be safe to specify
    ``newline=''``, since the csv module does its own
    (:term:`universal <universal newlines>`) newline handling.