]> granicus.if.org Git - python/commitdiff
Name c -> cls in example.
authorGeorg Brandl <georg@python.org>
Mon, 7 Mar 2011 07:31:52 +0000 (08:31 +0100)
committerGeorg Brandl <georg@python.org>
Mon, 7 Mar 2011 07:31:52 +0000 (08:31 +0100)
Doc/tutorial/classes.rst

index 576ef3a49cc41f175588b57fd510c4f8b9ef7912..a0f2431e5e6b9dc82a2e39ef65d60472af4c6be4 100644 (file)
@@ -673,9 +673,9 @@ example, the following code will print B, C, D in that order::
    class D(C):
        pass
 
-   for c in [B, C, D]:
+   for cls in [B, C, D]:
        try:
-           raise c()
+           raise cls()
        except D:
            print("D")
        except C: