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
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
2 matches
Mail list logo