[Python-Dev] function call syntax oddity

Raymond Hettinger python at rcn.com
Fri Jan 4 23:35:06 CET 2008


[Paul Moore]
> 1 .__str__()
> This one is a number "1" followed by 
> the operator "." followed by "__str__".

FWIW, I would avoid the odd spacing and write this as:

    (1).__str__()

Raymond


More information about the Python-Dev mailing list