Comment Comment by joshuamorton by "kwargs" the usual approach is to have optional arguments ("keyword arguments") that aren't just kwargs, but are named optional arguments: def func(args, flag=False, flag2=True) parent joshuamorton 6 years ago