Post #2476228
2026-05-02 14:02 UTC
@MrBerard@mastodon.acm.org That, and the fact that defaults are set when the module is loaded.
The long term solution is here:
peps.python.org/pep-0671/
Trying to see if we can drum up some support for it!
Replies (1)
-
@MrBerard@mastodon.acm.org 2026-05-02 15:30
@grant_h@mastodon.social Yeah, that's been the design pattern I've seen and used: default to None and test for it, if you're doing anything anything fancier than a Bool or an Int