Dec. 5, 2021
9:30 a.m.
On Sun, Dec 5, 2021 at 5:41 PM <2QdxY4RzWzUUiLuE@potatochowder.com> wrote:
Also FWIW, I still think that if you're doing (b) or (c), then you're *not* doing default values anymore, you're moving pieces of the logic or the design into the wrong place. One example of (b) goes something like this:
def write_to_log(event, time=>current_time()): actually_write_to_log(event, time)
Very very common use-case for that: https://pyauth.github.io/pyotp/#time-based-otps The vast majority of calls are going to leave the time parameter at the default. (The one I linked to has separate "at" and "now" functions, but combining them makes very good sense.) ChrisA