Hi, I am getting the following errorTypeError: sort() takes no keyword arguments
Aidan
aweraw at gmail.com
Fri Oct 17 02:43:32 EDT 2008
gaurav kashyap wrote:
> Hi all,
> I am using python version 2.3.in a program ,
> I have called the sort function.Wherein,
> a.sort(reverse=True)
> is giving the following error:
>
> TypeError: sort() takes no keyword arguments.
>
> It works in python 2.4,What can be the alternative in python 2.3
>
> Thanks ,
> Gaurav
>
You could try:
>>> a.sort()
>>> a = a[::-1]
More information about the Python-list
mailing list