index all instances by id - a memory leak?

Dan Barbus dan.barbus at gmail.com
Thu Oct 2 01:01:32 EDT 2008


On Oct 2, 7:54 am, Dan Barbus <dan.bar... at gmail.com> 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