|
def first_name_selection(names=[], gender='male', nationality='en'): |
Please, do not use default mutable type objects in function arguments.
In case, you need to apply an empty list by default, there is a way to do this:
def some_func(default_empty_list = None):
default_empty_list = defualt_empty_list or []
createusersdata/create_first_name.py
Line 7 in 7baef06
Please, do not use default mutable type objects in function arguments.
In case, you need to apply an empty list by default, there is a way to do this: