Argument mode order rules, Help

Alex Coventry alex_c at mit.edu
Wed Aug 9 19:51:47 EDT 2000


Hi, Pramod.

You don't pass the variable name for default arguments, only for
keyword arguments, which are not specified in the argument list.  Try
this:


def opOne(self, *args, **kw):
    _accessID = kw.get('_accessID', None)
     
That'll give you the behaviour you seem to want from your examples.

Alex.



More information about the Python-list mailing list