| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| | |
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.
|
| | | |
|
| | |
| | |
| | |
| | | |
ModuleNotFoundError.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
ModuleNotFoundError.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
ImportError.
The exception is raised by import when a module could not be found.
Technically this is defined as no viable loader could be found for the
specified module. This includes ``from ... import`` statements so that
the module usage is consistent for all situations where import
couldn't find what was requested.
This should allow for the common idiom of::
try:
import something
except ImportError:
pass
to be updated to using ModuleNotFoundError and not accidentally mask
ImportError messages that should propagate (e.g. issues with a
loader).
This work was driven by the fact that the ``from ... import``
statement needed to be able to tell the difference between an
ImportError that simply couldn't find a module (and thus silence the
exception so that ceval can raise it) and an ImportError that
represented an actual problem.
|
| | | |
|
| | |
| | |
| | |
| | | |
Martin Morrison.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | |
| | |
| | |
| | | |
messages.
|
| | | |
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | | |
Patch from Serhiy Storchaka.
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
data.
Also alphabetized the attributes in the blacklist to make it easier to
detect changes.
Initial patch by Éric Araujo.
|
| | |
|
| |
| |
| |
| | |
retrieving a source file
|
| |
| |
| |
| | |
use "interactive" instead.
|
| | |
|
| |
| |
| |
| |
| | |
Most of the import sequence now uses per-module locks rather than the
global import lock, eliminating well-known issues with threads and imports.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
importlib.machinery that provide the suffix details for import.
The attributes were not put on imp so as to compartmentalize
everything importlib needs for setting up imports in
importlib.machinery.
This also led to an indirect deprecation of inspect.getmoduleinfo() as
it directly returned imp.get_suffix's returned tuple which no longer
makes sense.
|
|\ \
| |/
| |
| | |
Original patch by Peter Otten.
|
| |
| |
| |
| | |
Original patch by Peter Otten.
|
| |
| |
| |
| |
| |
| |
| | |
importlib._bootstrap is now frozen into Python/importlib.h and stored
as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen
code along with sys and imp and then uses _frozen_importlib._install()
to set builtins.__import__() w/ _frozen_importlib.__import__().
|