phwoar, ok. I think I understand.
To break it down:
I have a class Foo which, among other things, contains a dict called
vals with keys of dates and values of floats.
When I store an instance of Foo, it goes to the foo table, and any
items in the vals dict should go into the vals table.
For
BEES INC wrote:
phwoar, ok. I think I understand.
To break it down:
I have a class Foo which, among other things, contains a dict called
vals with keys of dates and values of floats.
When I store an instance of Foo, it goes to the foo table, and any
items in the vals dict should go into
Ugh, the datatype for vals.val should be float, or the argument passed
should be 1 instead of 1.0, it's immaterial to the error im seeing.
On Sun, Sep 27, 2009 at 3:25 AM, BEES INC bees@gmail.com wrote:
Hi
I am having a problem when i run the code below, it gives me the
following error:
On Sep 26, 2009, at 1:25 PM, BEES INC wrote:
class Vals(dict): pass
class Foo(object):
def __init__(self, name):
self.vals = Vals()
self.name = name
def add(self, key, value):
self.vals[key] = value
you would need to say