R. David Murray <rdmur...@bitdance.com> added the comment: >>> [1,2,3].remove(1) >>> repr([1,2,3].remove(1)) 'None'
The remove method mutates the list, and therefore like all such mutating methods, it returns None. ---------- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5822> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com