On Fri, 4 Jun 2010 09:00:13 am ALAN GAULD quoted Tino Dai who wrote:
> "Tino Dai" wrote
[...]
> >> I have code that is unpythonic in many places. It works, but
> >> it's ugly. One of those unpythonic places is I'm initializing some
> >> variable such as a list,dict, or whatever outside of if/
Fowarding to the list.
Remember to use Reply ALL when replying.
Alan G.
"Tino Dai" wrote
>>>
>>>
>>> Is there a way to express this:
isThumbnail = False
if size == "thumbnail":
isThumbnail = True
like this:
[ isThumbnail