Aug-22-2019, 05:04 AM
millpond Wrote:Is conversion to tuple in *args functions default behaviourYes python always uses a tuple for the arguments in a function call. If you want a list, just add a line
def func(*items): items = list(items) ...
*args and Tuples
|
|
Messages In This Thread |
*args and Tuples - by millpond - Aug-22-2019, 04:22 AM
RE: *args and Tuples - by Gribouillis - Aug-22-2019, 05:04 AM
RE: *args and Tuples - by millpond - Aug-22-2019, 07:44 AM
RE: *args and Tuples - by Gribouillis - Aug-22-2019, 07:59 AM
RE: *args and Tuples - by joe_momma - Dec-15-2019, 05:54 PM
|