[Python-Dev] List copy and clear (was Re: Inconsistent API for sets.Set and build-in set)

Nicolas Fleury nidoizo at yahoo.com
Thu Jun 30 20:03:38 CEST 2005


Barry Warsaw wrote:
> I've been looking at the API for sets.Set and built-in set objects in
> Python 2.4.1 and I think I have found some minor inconsistencies.

This comment reminds me another small inconsistency/annoyance.

Should copy and clear functions be added to lists, to be more consistent 
  with dict and set, and easing generic code?

(Sorry if discussed before, I haven't found anything about that in the 
archives)

Regards,
Nicolas



More information about the Python-Dev mailing list