Re: [Sqlalchemy-users] SQLAlchemy vs. constructors

2006-07-11 Thread Michael Bayer
youve got an extra "_" in the name of your "__init__" method; its not getting called.On Jul 11, 2006, at 3:34 PM, [EMAIL PROTECTED] wrote:from sqlalchemy import * import os # with constructor class FooDoesntWork(object):      def __init___(self, id, name):          self.id = id          self.name

[Sqlalchemy-users] SQLAlchemy vs. constructors

2006-07-11 Thread lists01
why does this code fail if i use the class that has a constructor? from sqlalchemy import * import os # with constructor class FooDoesntWork(object): def __init___(self, id, name): self.id = id self.name = name def __repr__(self): return '%s, %s' % (self.id, s