[EMAIL PROTECTED] wrote:
> Hi List,
>
> I have a list like this x=[7,4,2,6]
> and print x.sort()
> gives to me None ! :
>
>
>>> x=[7,4,2,6]
>>> print x.sort()
>>>
> None
>
> ... but
>
>
>>> x=[7,4,2,6]
>>> x.sort()
>>> print x
>>>
> [2, 4, 6, 7]
>
> so, why list.sort() returns N
Hi List,
I have a list like this x=[7,4,2,6]
and print x.sort()
gives to me None ! :
>> x=[7,4,2,6]
>> print x.sort()
None
... but
>> x=[7,4,2,6]
>> x.sort()
>> print x
[2, 4, 6, 7]
so, why list.sort() returns None? is this normal ?
(the python is "Python 2.4.3 (#69, Mar 29 2006, 17:35:34)
[M