[Python-checkins] Name c -> cls in example. (original) (raw)
georg.brandl python-checkins at python.org
Mon Mar 7 08:33:44 CET 2011
- Previous message: [Python-checkins] Daily reference leaks (5973743a52a1): sum=-323
- Next message: [Python-checkins] r88762 - in tracker/instances/python-dev: detectors/rietveldreactor.py scripts/addpatchsets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
http://hg.python.org/cpython/rev/88fe1ac48460 changeset: 68314:88fe1ac48460 user: Georg Brandl <georg at python.org> date: Mon Mar 07 08:31:52 2011 +0100 summary: Name c -> cls in example.
files: Doc/tutorial/classes.rst
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -673,9 +673,9 @@ 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:
-- Repository URL: http://hg.python.org/cpython
- Previous message: [Python-checkins] Daily reference leaks (5973743a52a1): sum=-323
- Next message: [Python-checkins] r88762 - in tracker/instances/python-dev: detectors/rietveldreactor.py scripts/addpatchsets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]