[Python-ideas] clear() method for lists

Ben Finney ben+python at benfinney.id.au
Sat Apr 4 03:14:31 CEST 2009


Andre Roberge <andre.roberge at gmail.com> writes:

> On Fri, Apr 3, 2009 at 8:33 PM, Ben Finney
> > wrote:
> > More than explicit, it would make ‘clear’ the One Obvious Way To
> > Do It for base collection types. +1 from me.
> 
> Seeing mostly positive responses so far ... Is it worth writing a
> pre-PEP to formalize this suggestion?

I wouldn't think it worth a PEP. Simpler to produce a patch
implementing and documenting the change, and see what reception it
gets on python-dev.

-- 
 \          “I got an answering machine for my phone. Now when someone |
  `\      calls me up and I'm not home, they get a recording of a busy |
_o__)                                          signal.” —Steven Wright |
Ben Finney




More information about the Python-ideas mailing list