@awoodsnet good q - In this case, I'm not the one calling the functions, it's a mocked function for a test. So I know when I get called, but I dont have the flexibility to alter the arguments. The other thing I could do is to make a dict and mutate a key in it, and that'd avoid the need for nonlocal.
=> More informations about this toot | View the thread | More toots from pamelafox@fosstodon.org
=> View awoodsnet@phpc.social profile
text/gemini
This content has been proxied by September (3851b).