A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2005-June/054526.html below:

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

[Python-Dev] List copy and clear (was Re: Inconsistent API for sets.Set and build-in set) [Python-Dev] List copy and clear (was Re: Inconsistent API for sets.Set and build-in set)Fred L. Drake, Jr. fdrake at acm.org
Thu Jun 30 23:43:32 CEST 2005
On Thursday 30 June 2005 17:26, Raymond Hettinger wrote:
 > the current idiom:
 >
 >    mylist[:] = []       # clear

Unless you happen to prefer the other current idiom:

    del mylist[:]


  -Fred

-- 
Fred L. Drake, Jr.   <fdrake at acm.org>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4