GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — gh-149083: Use sentinel for os.path.{ALLOW_MISSING,ALL_BUT_LAST} by JelleZijlstra · Pull Request #149613 · python/cpython Conversation
|
Documentation build overview
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return self.__class__.__name__ | ||
| # Sentinels. | ||
| ALL_BUT_LAST = sentinel('ALL_BUT_LAST') | ||
| """Special value for use in realpath().""" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is it used as a docstring of the sentinel? I wonder, how can this be implemented?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sentinels don't actually support docstrings. Putting a string like this is an established way to document a variable and I believe Sphinx supports it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Then they are not needed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.