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]

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to