Tuple "detection"

Batista, Facundo FBatista at uniFON.com.ar
Mon May 19 13:59:04 EDT 2003


#- Yes.  It's because the '%' operator has higher precedence 
#- than the ','
#- operator.  It's as if you typed
#- 
#-     print ("%d %d" % 5), 5

Clear as water.


#- Specifying tuples without the surrounding parentheses can 
#- sometimes bite
#- you.  It's generally best to always include them.

I do, :)

Thank you Skip.





More information about the Python-list mailing list