]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use the more conventional "self" as the name of the self parameter in an
authorFred Drake <fdrake@acm.org>
Fri, 29 Jun 2001 17:51:42 +0000 (17:51 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 29 Jun 2001 17:51:42 +0000 (17:51 +0000)
example.  It actually confused a reader.

Doc/tut/tut.tex

index 5fe1cb7405375f0fc255852dea53a2d84e8a9046..204583993ec4be6e1932786ab78eb6fc6da6331b 100644 (file)
@@ -3424,7 +3424,7 @@ this:
 class MyClass:
     "A simple example class"
     i = 12345
-    def f(x):
+    def f(self):
         return 'hello world'
 \end{verbatim}