Jameson Quinn wrote:
def fun2(**kw):
print kw["argument"]
Since this function effectively has a compulsory argument
called 'argument', it would be better written
def fun2(argument, **kw):
print argument
or, if the recently-added keyword-only feature is available,
def fun2(*, argument, **kw):
print argument
--
Greg
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com