Create sentinel objects, akin to None, NotImplemented, Ellipsis. Provides a simple way to define unique sentinel values for signaling special conditions (e.g., default arguments, missing data). Current version: 1.0.0. Release cadence: infrequent, stable.
pip install sentinelVerified import paths — ran on the pinned version, not inferred.
Creates a sentinel object to use as a default argument marker.
Always assign the sentinel to a module-level variable (e.g., _MISSING = Sentinel('MISSING')) and import that variable.If pickling is needed, use sentinel's __reduce__ method or define a custom sentinel class.
Always use 'is' for comparison, not '=='.