Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tuple parameter function python is None

def func(self, args):
    defaultargs = (1, 2, 3)
    args = tuple(map(lambda x, y: y if y is not None else x, defaultargs, args))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #tuple #parameter #function #python #None
ADD COMMENT
Topic
Name
4+9 =