| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Patch by Sean Rodman, test by Kaushik N.
|
|\ |
|
| |
| |
| |
| | |
Implementation by Antoine Pitrou.
|
| | |
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| |
| |
| | |
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.
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | | |
Patch by Víctor Terrón.
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
Along the way, dismantle importlib._bootstrap._SpecMethods as it was
no longer relevant and constructing the new function required
partially dismantling the class anyway.
|
| | |
| | |
| | |
| | |
| | | |
The 'File objects' section was removed in Python 3.
Patch by Claudiu Popa.
|
| | |
| | |
| | |
| | | |
contains characters not encodable to the stdout encoding.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
for bound methods. Previous to this change, it displayed "self" for methods
implemented in Python but not methods implemented in C; it is now both
internally consistent and consistent with inspect.Signature.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type)
have been modified to provide introspection information for builtins.
Also: many additional Lib, test suite, and Argument Clinic fixes.
|
| | | |
|
| | |
| | |
| | |
| | | |
Also add missing tests to test_pydoc.
|
| | |
| | |
| | |
| | | |
for some builtins.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
located in the metaclass.
Okay, hopefully the very last patch for this issue. :/
I realized when playing with Enum that the metaclass attributes weren't always displayed properly.
New patch properly locates DynamicClassAttributes, virtual class attributes (returned by __getattr__ and friends), and metaclass class attributes (if they are also in the metaclass __dir__ method).
Also had to change one line in pydoc to get this to work.
Added tests in test_inspect and test_pydoc to cover these situations.
|
| | | |
|