scope of function parameters
Ben Finney
ben+python at benfinney.id.au
Mon May 30 05:17:32 EDT 2011
Laurent Claessens <moky.math at gmail.com> writes:
> Le 30/05/2011 11:02, Terry Reedy a écrit :
> > Try 5 .__add__(6)
>
> What is the rationale behind the fact to add a space between "5" and
> ".__add__" ?
> Why does it work ?
Try asking it the other way around. Why doesn't ‘5.__add__(6)’, without
the space, work?
--
\ “Telling pious lies to trusting children is a form of abuse, |
`\ plain and simple.” —Daniel Dennett, 2010-01-12 |
_o__) |
Ben Finney
More information about the Python-list
mailing list