Is there any way to do the following?
def getTables(self, db = self._dbName):
//do stuff with db
return func(db)
I get a "self" is not defined. I could do this...
def getTables(self, db = None):
if db is None:
db = self._db
//do stuff with db
return func(db)
... but that is just annoying.
Noneis the correct default here.selfdoesn't exist until inside the method.