How to tell a function to use the default argument values?
One way to do it would be with variadic argument unpacking: def foo(…, **kwargs): … if math.isclose(x, y, **kwargs): … This would allow you to specify atol and rtol as keyword arguments to the main function foo, which it would then pass on unchanged to math.isclose. However, I would also say that it is idiomatic … Read more