print "-- I'm sorry, we're all out of", kind
for arg in arguments: print arg
print '-'*40
- for kw in keywords.keys(): print kw, ':', keywords[kw]
+ keys = keywords.keys()
+ keys.sort()
+ for kw in keys: print kw, ':', keywords[kw]
\end{verbatim}
It could be called like this:
sketch : Cheese Shop Sketch
\end{verbatim}
+Note that the \method{sort()} method of the list of keyword argument
+names is called before printing the contents of the \code{keywords}
+dictionary; if this is not done, the order in which the arguments are
+printed is undefined.
+
\subsection{Arbitrary Argument Lists \label{arbitraryArgs}}