From: Georg Brandl Date: Fri, 15 Oct 2010 15:32:05 +0000 (+0000) Subject: Refrain from using inline suites. X-Git-Tag: v3.2a4~561 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70543acfa1bce2e5f448d8d0085df595bfa9a2f9;p=thirdparty%2FPython%2Fcpython.git Refrain from using inline suites. --- diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index bd88ad6ff501..e33a59619a9f 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -458,10 +458,12 @@ function like this:: def cheeseshop(kind, *arguments, **keywords): print("-- Do you have any", kind, "?") print("-- I'm sorry, we're all out of", kind) - for arg in arguments: print(arg) + for arg in arguments: + print(arg) print("-" * 40) keys = sorted(keywords.keys()) - for kw in keys: print(kw, ":", keywords[kw]) + for kw in keys: + print(kw, ":", keywords[kw]) It could be called like this::