Steven D'Aprano added the comment:
This is not a bug or a syntax error, and the behaviour goes back to at least
Python 1.5 if not older.
List.reverse returns a reference to the method object itself. List.reverse()
*calls* the method. This is standard behaviour in Python, all methods and
New submission from Rajesh :
List.reverse() this is working in reverse order
List.reverse this is not giving syntax error and printing the list as
it is.
Can you consider this as bug and fix it in further versions ?
--
messages: 325136
nosy: rajesh99div99
priority: