From 1d79eb6abe47735639863a1107c55da6bf620131 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 11 Jan 2012 03:19:28 -0500 Subject: Closes #13754 String returned if less than *or equal to* x 3 --- Doc/library/stdtypes.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 7696ecb..629f08b 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1049,7 +1049,7 @@ string functions based on regular expressions. Return the string left justified in a string of length *width*. Padding is done using the specified *fillchar* (default is a space). The original string is - returned if *width* is less than ``len(s)``. + returned if *width* is less than or equal to ``len(s)``. .. versionchanged:: 2.4 Support for the *fillchar* argument. @@ -1113,7 +1113,7 @@ string functions based on regular expressions. Return the string right justified in a string of length *width*. Padding is done using the specified *fillchar* (default is a space). The original string is - returned if *width* is less than ``len(s)``. + returned if *width* is less than or equal to ``len(s)``. .. versionchanged:: 2.4 Support for the *fillchar* argument. @@ -1293,7 +1293,7 @@ string functions based on regular expressions. Return the numeric string left filled with zeros in a string of length *width*. A sign prefix is handled correctly. The original string is - returned if *width* is less than ``len(s)``. + returned if *width* is less than or equal to ``len(s)``. .. versionadded:: 2.2.2 -- cgit v0.12 From 477a06c14297423181200929974d350ac81d5622 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 11 Jan 2012 14:51:07 -0500 Subject: Minor correction. Closes #11418 --- Doc/tutorial/classes.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index c3640a0..9f115b0 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -409,8 +409,8 @@ argument:: self.add(x) Methods may reference global names in the same way as ordinary functions. The -global scope associated with a method is the module containing the class -definition. (The class itself is never used as a global scope.) While one +global scope associated with a method is the module containing its +definition. (A class is never used as a global scope.) While one rarely encounters a good reason for using global data in a method, there are many legitimate uses of the global scope: for one thing, functions and modules imported into the global scope can be used by methods, as well as functions and -- cgit v0.12