The reverse function is a function to reverse the list in place, not a
function to get the reverse of the list:

x = [1,2,3,4]
y = x
z = x.reverse()

will result in:

x = y = [4,3,2,1]
z = None


-- 
André Engels, andreeng...@gmail.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to