Just a quick question,

is it wrong to use the *args and **kwargs ( the latter in particular)
when DEFINING a function?

def fest(**kwargs):
    """ a function test """
    keys = sorted(kwargs.keys())

    print("You provided {0} keywords::\n".format(len(keys)))
    for kw in keys:
        print("{0} => {1}".format(kw, kwargs[kw]))

Are there some good examples of when this would be a good idea to implement?

--john
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to