Problem subclassing Database class
Scott David Daniels
Scott.Daniels at Acm.Org
Tue Aug 29 17:46:51 EDT 2000
christhemule at my-deja.com wrote:
>
> I'm trying to subclass the DB class in the PyGreSQL module with the
> following code fragment:
>
> class Database(DB):
> "Class providing a wrapper around the DB class in PyGreSQL"
>
> def __init__(self, *args, **kw):
> DB.__init__(self, args, kw)
>
> ...snip....
>
Try passing along the args like this:
def __init__(self, *args, **kw):
DB.__init__(self, *args, **kw)
That is, the "*" and "**" notation is a bit
more abstract than the way you are using it.
-Scott
More information about the Python-list
mailing list