24
Find the bug (a classic)
(programming.dev)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
Yeah, I discovered this when a coworker wrote code like
def foo(timestamp = now())
and had fun debugging why there were a bunch of duplicate timestamps.PEP 671 would add new syntax to ease the pain, but it's not accepted yet. It would allow for writing function definitions like one of these: