| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
CVE-2021-3426: Remove the "getfile" feature of the pydoc module which
could be abused to read arbitrary files on the disk (directory
traversal vulnerability). Moreover, even source code of Python
modules can contain sensitive data like passwords. Vulnerability
reported by David Schwörer.
(cherry picked from commit 9b999479c0022edfc9835a8a1f06e046f3881048)
Co-authored-by: Victor Stinner <vstinner@python.org>
|
|
|
|
|
|
| |
Pydoc now does not duplicate docstrings for aliases of inherited methods.
(cherry picked from commit a44d34e17908a49d584f86c4f8642a50707b7150)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit d04f46c59f1d07d9bcc0ba910741296ac88d370d)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
|
|
|
|
|
|
| |
ServerThread.stop() now joins itself to wait until
DocServer.serve_until_quit() completes and then explicitly sets
its docserver attribute to None to break a reference cycle.
(cherry picked from commit 4cab2cd0c05fcda5fcb128c9eb230253fff88c21)
|
|
|
|
|
|
|
|
| |
literals on pydoc. (GH-6701)
Also update the list of string prefixes.
(cherry picked from commit b2043bbe6034b53f5ad337887f4741b74b70b00d)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
|
|
|
|
| |
In pydoc.py, the reference to Python' documentation was in http.
The link has been updated to use https.
(cherry picked from commit e5681b9822c633c77ddfeb94585d58895e0ecff5)
|
| |
|
|
|
|
| |
one set by the env var PAGER).
|
|
|
|
| |
one set by the env var PAGER).
|
|\ |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Patch by Sean Rodman, test by Kaushik N.
|
| |
| |
| |
| | |
to format short Python version.
|
|\ \
| |/ |
|
| |\ |
|
| | |
| | |
| | |
| | | |
Implementation by Antoine Pitrou.
|
|\ \ \
| |/ / |
|
|/ /
| |
| |
| | |
were defined.
|
| | |
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| |
| |
| | |
The concept of .pyo files no longer exists. Now .pyc files have an
optional `opt-` tag which specifies if any extra optimizations beyond
the peepholer were applied.
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| | |
The previous patch only dealt with KeyboardInterrupt when all of the
data had been consumed by the pager. This deals with the interrupt
when some data is still pending.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, if you hit ctl-c while the pager was active, the python that
launched the subprocess for the pager would see the KeyboardInterrupt in the
__exit__ method of the subprocess context manager where it was waiting for the
subprocess to complete, ending the wait. This would leave the pager running,
while the interactive interpreter, after handling the exception by printing
it, would go back to trying to post a prompt...but the pager would generally
have the terminal in raw mode, and in any case would be still trying to read
from stdin. On some systems, even exiting python at that point would not
restore the terminal mode. The problem with raw mode could also happen if
ctl-C was hit when pydoc was called from the shell command line and the pager
was active.
Instead, we now wait on the subprocess in a loop, ignoring KeyboardInterrupt
just like the pager does, until the pager actually exits.
(Note: this was a regression relative to python2...in python2 the pager
is called via system, and system does not return until the pager exits.)
|
| |
| |
| |
| |
| | |
shows the help on str. help('help') now shows the help on help().
Original patch by Mark Lawrence.
|
|\ \
| |/
| |
| | |
differs from file system encoding (e.g. on Mac OS).
|
| |
| |
| |
| | |
differs from file system encoding (e.g. on Mac OS).
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Patch by Yuyang Guo and Berker Peksag.
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| | |
nested subdirectory anymore.
|
| |
| |
| |
| | |
nested subdirectory anymore.
|
|\ \
| |/
| |
| | |
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
|
| |\
| | |
| | |
| | | |
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
|
| | |
| | |
| | |
| | | |
interfaces.
|
| | |\
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This fixes a regression relative to Python2. (In 2, methods on a class were
unbound methods and matched the inspect queries being done, in 3 they are just
functions and so were missed).
This is an undocumented function that pydoc itself does not use, but
I found that numpy at least uses it in its documentation generator.
Original patch by Matt Bachmann.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This fixes a regression relative to Python2. (In 2, methods on a class were
unbound methods and matched the inspect queries being done, in 3 they are just
functions and so were missed).
This is an undocumented function that pydoc itself does not use, but
I found that numpy at least uses it in its documentation generator.
Original patch by Matt Bachmann.
|
| | | |
| | | |
| | | |
| | | | |
class name instead of hardcoded one.
|
|\ \ \ \
| |/ / / |
|
| | | | |
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
valid file (closes #11709)
Original patch by Amaury Forgeot d'Arc with a test by bdettmer.
|
|\ \ \ \
| |/ / / |
|