stupid/style/list question

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Wed Jan 9 13:43:23 CET 2008


Duncan Booth:
> I tried to measure this with timeit, and it looks like the 'del' is
> actually quite a bit faster (which I find suprising).

Yes, it was usually faster in my benchmarks too. Something similar is
true for dicts too. I think such timings are influenced a lot by the
garbage collector.

Bye,
bearophile



More information about the Python-list mailing list