def __init__(self) --> TypeError: Not a sequence?
Jason Orendorff
jason at jorendorff.com
Thu Jan 24 04:11:33 EST 2002
Ixokai wrote:
> I'm confused :)
>
> Stripped down code w/ Python2.2:
>
> class _ObjectStore(object):
> def __init__(self):
> self.blah = basic-initialization-for-everything
>
> class _SpecificThingyStore(_ObjectStore):
> def __init__(self):
> super(_SpecificThingStore, self).__init__()
> self.blah2 = specific-initialiation-for-everything
>
> Then, at import, I receive: "TypeError: Not a sequence" at each of the
> __init__ lines. I am baffled. :) What am I not understanding here? :)
This code won't import because "for" is a keyword.
It works for me if I put "basic-initialization-for-everything"
and "specific-initialization-for-everything" in quotes.
If you could post some actual error messages, it might help.
## Jason Orendorff http://www.jorendorff.com/
More information about the Python-list
mailing list