diff options
| author | Georg Brandl <georg@python.org> | 2011-03-07 08:31:52 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2011-03-07 08:31:52 +0100 |
| commit | 4e673d6ab4524ce09b5ae30881ab5e03305201ef (patch) | |
| tree | a8a3bc0f6ca2360bb5e872df3f1a4b72d700c928 /Doc/tutorial | |
| parent | cd04aec968672808c98cd2d61764c937f82b6ea6 (diff) | |
| download | cpython-4e673d6ab4524ce09b5ae30881ab5e03305201ef.tar.gz | |
Name c -> cls in example.
Diffstat (limited to 'Doc/tutorial')
| -rw-r--r-- | Doc/tutorial/classes.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 576ef3a49c..a0f2431e5e 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -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: |
