]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-94286 Fix documentation of print default param (GH-94297)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 6 Nov 2022 20:23:01 +0000 (12:23 -0800)
committerGitHub <noreply@github.com>
Sun, 6 Nov 2022 20:23:01 +0000 (12:23 -0800)
(cherry picked from commit 2db55e0c0069a928775fa819973a76f840c5ab5a)

Co-authored-by: Nouran Ali <nouranalimohammed@gmail.com>
Doc/library/functions.rst

index 86b88c0c552cb6927692773093815d246bb72ba3..97641d1b85cbb4dbc95a8a03d9a84f5e0fd83574 100644 (file)
@@ -1399,7 +1399,7 @@ are always available.  They are listed here in alphabetical order.
       supported.
 
 
-.. function:: print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)
+.. function:: print(*objects, sep=' ', end='\n', file=None, flush=False)
 
    Print *objects* to the text stream *file*, separated by *sep* and followed
    by *end*.  *sep*, *end*, *file*, and *flush*, if present, must be given as keyword