stupid/style/list question

bearophileHUGS at bearophileHUGS at
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.


More information about the Python-list mailing list