Re: strange behaviour with keyword arguments and inheritance

2007-04-17 Thread matthewperpick
cool .. thanks everyone. here is the aforementioned faq. http://www.python.org/doc/faq/general/#why-are-default-values-shared-between-objects On Apr 17, 5:16 am, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > matthewperpick wrote: > > Check out this toy example that demonstrate

strange behaviour with keyword arguments and inheritance

2007-04-16 Thread matthewperpick
Check out this toy example that demonstrates some "strange" behaviour with keyword arguments and inheritance. = class Parent: def __init__(self, ary = []): self.ary = ary def append(self): self.ary.append(1) class Child(Parent): def __

using converters, adapters in sqlite3

2006-11-15 Thread matthewperpick
hello, i want to make use of sqlite3's "adapter" and "converter" capabilities but my classes are more complex than the point examples in the python documentation (http://docs.python.org/lib/node347.html), because they include foreign keys to othe rtables. I don't want to concatenate those with th