Add missing cross-references to improve navigation in getpass.rst#151092
Add missing cross-references to improve navigation in getpass.rst#151092sergiolpzgmz wants to merge 2 commits into
getpass.rst#151092Conversation
34dc965 to
c5d4779
Compare
Documentation build overview
|
|
|
||
| If echo free input is unavailable getpass() falls back to printing | ||
| a warning message to *stream* and reading from ``sys.stdin`` and | ||
| If echo free input is unavailable :meth:`~getpass.getpass` falls back to printing |
There was a problem hiding this comment.
We don't want to link to a function in its documentation, see the style guide for more information on links. However, you also found a linklint bug (or workaround)!
CC @nedbat for the bug.
There was a problem hiding this comment.
:meth: is tested, and works. It looks like the problem here with linklint is getpass.getpass vs getpass. In this line, I tried all combinations (using ' here instead of `):
:meth:'getpass' is linked.
:meth:'getpass.getpass' is linked
:meth:'~getpass.getpass' is linked
:func:'getpass' is NOT linked.
:func:'getpass.getpass' is linked
:func:'~getpass.getpass' is linked
So to remain unlinked, the type has to match (func), and the name can't be fully qualified. I thought linklint was better about that....
|
|
||
| If echo free input is unavailable getpass() falls back to printing | ||
| a warning message to *stream* and reading from ``sys.stdin`` and | ||
| If echo free input is unavailable :meth:`~getpass.getpass` falls back to printing |
There was a problem hiding this comment.
While we are here:
| If echo free input is unavailable :meth:`~getpass.getpass` falls back to printing | |
| If echo-free input is unavailable :func:`getpass` falls back to printing |
|
|
||
| .. note:: | ||
| If you call getpass from within IDLE, the input may be done in the | ||
| If you call :meth:`~getpass.getpass` from within IDLE, the input may be done in the |
There was a problem hiding this comment.
| If you call :meth:`~getpass.getpass` from within IDLE, the input may be done in the | |
| If you call :func:`getpass` from within IDLE, the input may be done in the |
No description provided.