Iterate through dictionary of file objects and file names
Brian Beck
exogen at gmail.com
Sat Feb 12 21:55:21 EST 2005
jfj wrote:
> Call me a pedant, but what'd wrong with:
>
> print 'closed: ' + filename
> or
> print 'closed:', filename
>
> ?
I always figure that debug-oriented output like that in example code is
very likely to be changed in format, or to include more information, by
the person actually using it. So string substitution makes it more
flexible; less work for them.
--
Brian Beck
Adventurer of the First Order
More information about the Python-list
mailing list