[Python-Dev] List copy and clear (was Re: Inconsistent API forsets.Set and build-in set) (original) (raw)
Christos Georgiou tzot at mediconsa.com
Thu Jul 7 16:16:27 CEST 2005
- Previous message: [Python-Dev] List copy and clear (was Re: Inconsistent API for sets.Set and build-in set)
- Next message: [Python-Dev] List copy and clear (was Re: Inconsistent API forsets.Set and build-in set)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Tim Peters" <tim.peters at gmail.com> wrote in message news:1f7befae05063015207acb85dc at mail.gmail.com...
Or my personal favorite,
while mylist: del mylist[::2] Then the original index positions with the most consecutive trailing 1 bits survive the longest, which is important to avoid ZODB cache bugs .
This is a joke, hopefully, and in that case, I fell for it. If not, please provide a url with related discussion (for educational purposes :)
- Previous message: [Python-Dev] List copy and clear (was Re: Inconsistent API for sets.Set and build-in set)
- Next message: [Python-Dev] List copy and clear (was Re: Inconsistent API forsets.Set and build-in set)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]