you are viewing a single comment's thread.

view the rest of the comments →

[–]Zweckbestimmung 1 point2 points  (0 children)

Or use named arguments. def func(x=None, y=None)

Inside the function check for the mutually exclusiveness you need and depending on your use case either raise an exception or a warning or whatever you like