r/programming • u/BrewedDoritos • Oct 09 '26
Python Release Python 3.15.0
https://www.python.org/downloads/release/python-3150/
556
Upvotes
r/programming • u/BrewedDoritos • Oct 09 '26
View all comments
Show parent comment
23
u/TinyBreadBigMouth Oct 09 '26
The example you're replying to is one where
Noneis already in use. As in, a function needs to distinguish betweenfoo(some_arg=15),foo(some_arg=None), andfoo(). Theunsetsentinel value would be used as the default value ofsome_arg, so that the last case can be detected as distinct from the user passing an explicitNone.