Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/classes.rst @ 74336:32ea3675fba2 3.2
Minor correction. #11418
| author | Terry Jan Reedy <tjreedy@udel.edu> |
|---|---|
| date | Wed, 11 Jan 2012 14:54:34 -0500 |
| parents | fc75798f292e |
| children | aaf45928899c 7568134ac6cf |
line wrap: on
line diff
--- a/Doc/tutorial/classes.rst Wed Jan 11 14:09:49 2012 -0500 +++ b/Doc/tutorial/classes.rst Wed Jan 11 14:54:34 2012 -0500 @@ -458,8 +458,8 @@ 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
