I've got a method:
def do_something(year=?, month=?):
pass
I want the year
and month
arguments to be optional but I want their default to equal the current year and month. I've thought about setting two variables just before the method declaration but the process this is part of can run for months. It needs to be dynamic.
Seems like it shouldn't be hard but I'm having a mental block today so how would you do it?