PyDocs

Nav

Python Runtime Services

sentinel

builtins

class · Added in 3.15
  • sentinel(name, /, *, repr=None)
Create a unique sentinel object with the given name.
Members of sentinel

_

__module__
The name of the module where the sentinel was created.
__name__
The sentinel’s name.
1 Example
>>> MISSING = sentinel("MISSING")
>>> MISSING
MISSING
from the Python docs
See Also
No see-alsos for builtins/sentinel
0 Notes
No notes for sentinel