Delete all items in the list

Terry Reedy tjreedy at udel.edu
Thu Feb 26 19:22:18 CET 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