[Tutor] (2.7.3) Inexplicable change of type

Peter Otten __peter__ at web.de
Fri Sep 14 11:06:46 CEST 2012


Ray Jones wrote:

>         source = source.remove('')

list.remove() modifies the list in-place and therefore by convention returns 
None:

>>> source = ["one", "", "three"]
>>> source.remove("")
>>> source
['one', 'three']




More information about the Tutor mailing list