default values for variable argument list in Python
Posted
by deamon
on Stack Overflow
See other posts from Stack Overflow
or by deamon
Published on 2010-05-03T16:14:47Z
Indexed on
2010/05/03
16:18 UTC
Read the original article
Hit count: 257
Is it possible to set a default value for a variable argument list in Python 3?
Something like:
def do_it(*args=(2, 5, 21)):
pass
I wonder that a variable argument list is of type tuple
but no tuple is accepted here.
© Stack Overflow or respective owner