sentinel

How to create a falsy sentinel object in Python?

How to create a falsy sentinel object in Python? Question: I have a function which is designed to be called by passing in one of to keyword arguments. I’m using a sentinel object as default value, so that I can make sure no one just calls func() without any arguments, which is a clear logical …

Total answers: 2