index all instances by id - a memory leak?

Dan Barbus dan.barbus at
Thu Oct 2 07:01:32 CEST 2008

On Oct 2, 7:54 am, Dan Barbus < at> wrote:
>     def getItemById(id):
>         return _itemsById[id]

I just saw that this won't compile. Still, ignoring this, I thing the
purpose of the code is pretty clear.

Thanks for any feedback.

More information about the Python-list mailing list