mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Refrain from using inline suites.
This commit is contained in:
parent
91d2a3fb0e
commit
70543acfa1
1 changed files with 4 additions and 2 deletions
|
@ -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::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue