Refrain from using inline suites.

This commit is contained in:
Georg Brandl 2010-10-15 15:32:05 +00:00
parent 91d2a3fb0e
commit 70543acfa1
1 changed files with 4 additions and 2 deletions

View File

@ -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::