Self reordering list in Python

Fredrik Lundh fredrik at pythonware.com
Thu Sep 15 17:21:51 CEST 2005


Laszlo Zsolt Nagy wrote:

> Do you know how to implement a really efficient self reordering list in
> Python? (List with a maximum length. When an item is processed, it
> becomes the first element in the list.) I would like to use this for
> caching of rendered images.

did you check the cheeseshop?

    http://www.python.org/pypi/lrucache/0.2

</F> 






More information about the Python-list mailing list