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 urllib.parse._UNSPECIFIED by JelleZijlstra · Pull Request #149612 · python/cpython Conversation
|
|
|
||
|
|
||
| _UNSPECIFIED = ['not specified'] | ||
| _UNSPECIFIED = sentinel("_UNSPECIFIED") |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Would not it look better in the help if use "<not specified>" as a name? This sentinel is not intended to be pickled or used by user. It is just a placeholder for the case when the user has not specified the argument.
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.
I used the repr= argument now that we have it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks @JelleZijlstra for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-151017 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…) (#151017) This was added in 3.15; let's use a real sentinel instead of an ad-hoc list object. (cherry picked from commit 884ac3e) Co-authored-by: Jelle Zijlstra <[email protected]>
…49612) This was added in 3.15; let's use a real sentinel instead of an ad-hoc list object.
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.