Re: Coding style
- From: Dave Hansen <iddw@xxxxxxxxxxx>
- Date: Mon, 17 Jul 2006 14:35:17 -0500
On Mon, 17 Jul 2006 17:09:32 +0100 in comp.lang.python, "Simon
Brunning" <simon@xxxxxxxxxxxxxxxxxx> wrote:
[...]
lst = [1,2,3,4,5]
while lst:
lst.pop()
Or even just:
lst = []
del lst[:]
is probably closer to what the OP wants...
Regards,
-=Dave
--
Change is inevitable, progress is not.
.
- References:
- Coding style
- From: PTY
- Re: Coding style
- From: Simon Brunning
- Coding style
- Prev by Date: Re: Augument assignment versus regular assignment
- Next by Date: Re: how to know if socket is still connected
- Previous by thread: Re: Coding style
- Next by thread: Re: Coding style
- Index(es):