Delete all items in the list

Terry Reedy tjreedy at udel.edu
Thu Feb 26 13:22:18 EST 2009


Gabriel Genellina wrote:

> 
>> L = filter('a'.__ne__,L)
> 
> And this is probably the fastest. But not all types define __ne__ 

In Py3, all classes inherit .__ne__ from 'object'.




More information about the Python-list mailing list