"inhahe" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

> crazy = True
> print foo['a',crazy]
>
just to clarify, you could use it like:
crazy = "I'm crazy" #this only has to be done once

print foo['a']          #not crazy
print foo['a',crazy] #crazy

(this may be totally unPythonic, i don't know.)




--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to