Thoughts on List Methods and Return Values

Fredrik Lundh fredrik at pythonware.com
Sat Feb 17 05:31:28 EST 2001


Don O'Donnell wrote:
> What if all the list methods returned a value?  Then
> there would no longer be that element of surprise.

    for item in mylist.reverse():
        print item
    for item in mylist.reverse():
        print item

Enough said /F





More information about the Python-list mailing list