elixir vs. storm

2009-03-11 Thread Dan Barbus
Hi, Anyone here compared elixir with storm? Both are sqlite declarative wrappers (as far as I understood) and both seem to hide the (unnecessary for what I want) SQL/data layer under pythonic wrappers. I'm not trying to start a flamewar here (but I wanted to know if one is more mature than the ot

class property not working in python 2.5.1

2009-02-25 Thread Dan Barbus
Hi, I have a problem with setting a property to a class instance, in python 2.5.1. The property is defined through get and set methods, but when I set it, the setter doesn't get called. Instead, I believe the property in the instance gets replaced with a new object (string). I have the following

Re: index all instances by id - a memory leak?

2008-10-01 Thread Dan Barbus
On Oct 2, 7:54 am, Dan Barbus <[EMAIL PROTECTED]> 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. -- http://mail.python.

index all instances by id - a memory leak?

2008-10-01 Thread Dan Barbus
Hi all, I'm a python beginner, and I have a problem with no solution I can see: I want to index all instances of an object by an internal id (not the hash) and be able to retrieve them later. I created a class-level dictionary (Item._itemById) where I add every new instance. My problem is: How