New submission from tormen <tor...@gmx.net>:

# python 3.1.1:

myList = []
for item in myList:
    print( item ) # <<< works

for item in myList.reverse(): # <<< breaks with: TypeError: 'NoneType' object 
is not iterable
    print( item ) #

# But the reverse of an empty list should really be an empty list
# ... or do I miss something here?

----------
messages: 99059
nosy: tormen
severity: normal
status: open
title: reverse on an empty list returns None
type: behavior
versions: Python 3.1

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7886>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to