You *kw at the end of your funciton

...
def newAccount(self, username, password, *kw):
      if ( kw.has_key('debug')):
               debug = kw['debug']
      .....


Keyword args are handy,  python first maps args to the named args
of our function, any extra keyword args are stuffed into the kw dict.

hope this helps,
Mike

Reply via email to