Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea868d3

Browse files
committed
Minor correction. #11418
1 parent e247928 commit ea868d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/tutorial/classes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ argument::
458458
self.add(x)
459459

460460
Methods may reference global names in the same way as ordinary functions. The
461-
global scope associated with a method is the module containing the class
462-
definition. (The class itself is never used as a global scope.) While one
461+
global scope associated with a method is the module containing its
462+
definition. (A class is never used as a global scope.) While one
463463
rarely encounters a good reason for using global data in a method, there are
464464
many legitimate uses of the global scope: for one thing, functions and modules
465465
imported into the global scope can be used by methods, as well as functions and

0 commit comments

Comments
 (0)