diff options
| author | Jason Madden <jamadden@gmail.com> | 2020-03-05 09:52:35 -0600 |
|---|---|---|
| committer | Jason Madden <jamadden@gmail.com> | 2020-03-09 12:51:18 -0500 |
| commit | 1e720c3819b8daa07aaad0ee0258d9035597f27d (patch) | |
| tree | 93f0ad828f0d8c8d23670aefeeeccaead854794a /docs/conf.py | |
| parent | c931999371b106ca4638a5cfb40fe0e431840358 (diff) | |
| download | zope-interface-issue11.tar.gz | |
Make provided/implementedBy and adapter registries respect super().issue11
The query functions now start by looking at the next class in the MRO (interfaces directly provided by the underlying object are not found).
Adapter registries automatically pick up providedBy change to start finding the correct implementations of adapters, but to make that really useful they needed to change to unpack super() arguments and pass __self__ to the factory.
Fixes #11
Unfortunately, this makes PyPy unable to build the C extensions.
Additional crash-safety for adapter lookup.
Make the C functions get the cache only after resolving the
``required`` into a tuple, in case of side-effects like...clearing the
cache. This could lead to the ``cache`` object being deallocated
before we used it.
Drop the ``tuplefy`` function in favor of a direct call to
``PySequence_Tuple``. It's what the ``tuple`` constructor would do
anyway and saves a few steps.
Make sure that getting ``providedBy(super())`` and
``implementedBy(super())`` have no side effects.
Diffstat (limited to 'docs/conf.py')
| -rw-r--r-- | docs/conf.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py index 8a0f86a..464f652 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,7 +17,9 @@ import os import pkg_resources sys.path.append(os.path.abspath('../src')) rqmt = pkg_resources.require('zope.interface')[0] - +# Import and document the pure-python versions of things; they tend to have better +# docstrings and signatures. +os.environ['PURE_PYTHON'] = '1' # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. |
