← 返回首页
GitHub - taleinat/python-stdlib-sentinels: Reference implementation of sentinels for the Python stdlib · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

taleinat/python-stdlib-sentinels

Go to file
Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
View all files

Repository files navigation

More items

Sentinels

This is a reference implementation of a utility for the definition of sentinel values in Python. This also includes a draft PEP for the inclusion of this utility in the Python standard library.

Usage

from sentinels import Sentinel NotGiven = Sentinel('NotGiven') MEGA = Sentinel('MEGA', repr='<MEGA>', module_name='my_mod')

References

About

Reference implementation of sentinels for the Python stdlib

Resources

License

Stars

47 stars

Watchers

6 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Footer

© 2026 GitHub, Inc.