Forgetting "()" when calling methods

Dave Benjamin ramen at lackingtalent.com
Tue Apr 29 02:28:06 EDT 2003


In article <mailman.1051497463.22158.python-list at python.org>,
Lulu of the Lotus-Eaters wrote:
> And to be even trickier, answer the question for the following lists:
> 
>     [u'x', 'x', chr(255)].sort()
>     ['x', chr(255), u'x'].sort()
>     [1j, '1', 1].sort()
>     [1, 1j, '1'].sort()
> 
> Then try to explain the answer to ANYONE you know.

I don't know what you're talking about. They all return "None" for me.
<ducking>

Dave




More information about the Python-list mailing list