"print" as function not statement

Leif K-Brooks eurleif at ecritters.biz
Mon Mar 8 05:36:54 EST 2004


Duncan Booth wrote:
> You need a bit more checking to be sure nobody tried to pass in any 
> unexpected keyword arguments, and your output loop is a bit messy.

Why check for unknown keyword arguments? It seems to me that better 
forward-compatibility is achieved if we ignore them.

You're right about the output loop, though. I haven't really tried list 
comprehensions yet, so I didn't even think of using them. Thanks.



More information about the Python-list mailing list