Using both keyword=something and *unknownqty arguments in a function
EP
EP at zomething.com
Mon Dec 22 16:46:31 EST 2003
Is it possible?
def skeptic(first='Zeus', second='Guido', *others)
print first
print second
print others
return "and I did not think it could ever work!"
answer=skeptic('believer', 'non-believer', 'heretic', first='Eric',
second='unknown')
Asking this seriously, please forgive any cuteness. Is there a way this
can be made to work, or are these two types of arguments mutually exclusive?
TIA,
Eric Pederson
More information about the Python-list
mailing list