Skip to main content

Interfaces for Python

Reason this release was yanked:

Missing some wheels.

Project description

zope.interface

Latest Version Supported Python versions https://github.com/zopefoundation/zope.interface/actions/workflows/tests.yml/badge.svg Documentation Status

This package is intended to be independently reusable in any Python project. It is maintained by the Zope Toolkit project.

This package provides an implementation of “object interfaces” for Python. Interfaces are a mechanism for labeling objects as conforming to a given API or contract. So, this package can be considered as implementation of the Design By Contract methodology support in Python.

For detailed documentation, please see https://zopeinterface.readthedocs.io/en/latest/

Changes

6.1a1 (2023-04-06)

  • Add support for building ppc64le wheels.

6.0 (2023-03-17)

  • Build Linux binary wheels for Python 3.11.

  • Drop support for Python 2.7, 3.5, 3.6.

  • Fix test deprecation warning on Python 3.11.

  • Add preliminary support for Python 3.12 as of 3.12a5.

  • Drop:

    • zope.interface.implements

    • zope.interface.implementsOnly

    • zope.interface.classProvides

5.5.2 (2022-11-17)

  • Add support for building arm64 wheels on macOS.

5.5.1 (2022-11-03)

  • Add support for final Python 3.11 release.

5.5.0 (2022-10-10)

  • Add support for Python 3.10 and 3.11 (as of 3.11.0rc2).

  • Add missing Trove classifier showing support for Python 3.9.

  • Add some more entries to zope.interface.interfaces.__all__.

  • Disable unsafe math optimizations in C code. See pull request 262.

5.4.0 (2021-04-15)

  • Make the C implementation of the __providedBy__ descriptor stop ignoring all errors raised when accessing the instance’s __provides__. Now it behaves like the Python version and only catches AttributeError. The previous behaviour could lead to crashing the interpreter in cases of recursion and errors. See issue 239.

  • Update the repr() and str() of various objects to be shorter and more informative. In many cases, the repr() is now something that can be evaluated to produce an equal object. For example, what was previously printed as <implementedBy builtins.list> is now shown as classImplements(list, IMutableSequence, IIterable). See issue 236.

  • Make Declaration.__add__ (as in implementedBy(Cls) + ISomething) try harder to preserve a consistent resolution order when the two arguments share overlapping pieces of the interface inheritance hierarchy. Previously, the right hand side was always put at the end of the resolution order, which could easily produce invalid orders. See issue 193.

5.3.0 (2020-03-21)

  • No changes from 5.3.0a1

5.3.0a1 (2021-03-18)

  • Improve the repr of zope.interface.Provides to remove ambiguity about what is being provided. This is especially helpful diagnosing IRO issues.

  • Allow subclasses of BaseAdapterRegistry (including AdapterRegistry and VerifyingAdapterRegistry) to have control over the data structures. This allows persistent implementations such as those based on ZODB to choose more scalable options (e.g., BTrees instead of dicts). See issue 224.

  • Fix a reference counting issue in BaseAdapterRegistry that could lead to references to interfaces being kept around even when all utilities/adapters/subscribers providing that interface have been removed. This is mostly an issue for persistent implementations. Note that this only corrects the issue moving forward, it does not solve any already corrupted reference counts. See issue 227.

  • Add the method BaseAdapterRegistry.rebuild(). This can be used to fix the reference counting issue mentioned above, as well as to update the data structures when custom data types have changed.

  • Add the interface method IAdapterRegistry.subscribed() and implementation BaseAdapterRegistry.subscribed() for querying directly registered subscribers. See issue 230.

  • Add the maintenance method Components.rebuildUtilityRegistryFromLocalCache(). Most users will not need this, but it can be useful if the Components.utilities registry is suspected to be out of sync with the Components object itself (this might happen to persistent Components implementations in the face of bugs).

  • Fix the Provides and ClassProvides descriptors to stop allowing redundant interfaces (those already implemented by the underlying class or meta class) to produce an inconsistent resolution order. This is similar to the change in @implementer in 5.1.0, and resolves inconsistent resolution orders with zope.proxy and zope.location. See issue 207.

5.2.0 (2020-11-05)

  • Add documentation section Persistency and Equality (#218).

  • Create arm64 wheels.

  • Add support for Python 3.9.

5.1.2 (2020-10-01)

  • Make sure to call each invariant only once when validating invariants. Previously, invariants could be called multiple times because when an invariant is defined in an interface, it’s found by in all interfaces inheriting from that interface. See pull request 215.

5.1.1 (2020-09-30)

  • Fix the method definitions of IAdapterRegistry.subscribe, subscriptions and subscribers. Previously, they all were defined to accept a name keyword argument, but subscribers have no names and the implementation of that interface did not accept that argument. See issue 208.

  • Fix a potential reference leak in the C optimizations. Previously, applications that dynamically created unique Specification objects (e.g., used @implementer on dynamic classes) could notice a growth of small objects over time leading to increased garbage collection times. See issue 216.

5.1.0 (2020-04-08)

  • Make @implementer(*iface) and classImplements(cls, *iface) ignore redundant interfaces. If the class already implements an interface through inheritance, it is no longer redeclared specifically for cls. This solves many instances of inconsistent resolution orders, while still allowing the interface to be declared for readability and maintenance purposes. See issue 199.

  • Remove all bare except: statements. Previously, when accessing special attributes such as __provides__, __providedBy__, __class__ and __conform__, this package wrapped such access in a bare except: statement, meaning that many errors could pass silently; typically this would result in a fallback path being taken and sometimes (like with providedBy()) the result would be non-sensical. This is especially true when those attributes are implemented with descriptors. Now, only AttributeError is caught. This makes errors more obvious.

    Obviously, this means that some exceptions will be propagated differently than before. In particular, RuntimeError raised by Acquisition in the case of circular containment will now be propagated. Previously, when adapting such a broken object, a TypeError would be the common result, but now it will be a more informative RuntimeError.

    In addition, ZODB errors like POSKeyError could now be propagated where previously they would ignored by this package.

    See issue 200.

  • Require that the second argument (bases) to InterfaceClass is a tuple. This only matters when directly using InterfaceClass to create new interfaces dynamically. Previously, an individual interface was allowed, but did not work correctly. Now it is consistent with type and requires a tuple.

  • Let interfaces define custom __adapt__ methods. This implements the other side of the PEP 246 adaptation protocol: objects being adapted could already implement __conform__ if they know about the interface, and now interfaces can implement __adapt__ if they know about particular objects. There is no performance penalty for interfaces that do not supply custom __adapt__ methods.

    This includes the ability to add new methods, or override existing interface methods using the new @interfacemethod decorator.

    See issue 3.

  • Make the internal singleton object returned by APIs like implementedBy and directlyProvidedBy for objects that implement or provide no interfaces more immutable. Previously an internal cache could be mutated. See issue 204.

5.0.2 (2020-03-30)

  • Ensure that objects that implement no interfaces (such as direct subclasses of object) still include Interface itself in their __iro___ and __sro___. This fixes adapter registry lookups for such objects when the adapter is registered for Interface. See issue 197.

5.0.1 (2020-03-21)

  • Ensure the resolution order for InterfaceClass is consistent. See issue 192.

  • Ensure the resolution order for collections.OrderedDict is consistent on CPython 2. (It was already consistent on Python 3 and PyPy).

  • Fix the handling of the ZOPE_INTERFACE_STRICT_IRO environment variable. Previously, ZOPE_INTERFACE_STRICT_RO was read, in contrast with the documentation. See issue 194.

5.0.0 (2020-03-19)

  • Make an internal singleton object returned by APIs like implementedBy and directlyProvidedBy immutable. Previously, it was fully mutable and allowed changing its __bases___. That could potentially lead to wrong results in pathological corner cases. See issue 158.

  • Support the PURE_PYTHON environment variable at runtime instead of just at wheel build time. A value of 0 forces the C extensions to be used (even on PyPy) failing if they aren’t present. Any other value forces the Python implementation to be used, ignoring the C extensions. See PR 151.

  • Cache the result of __hash__ method in InterfaceClass as a speed optimization. The method is called very often (i.e several hundred thousand times during Plone 5.2 startup). Because the hash value never changes it can be cached. This improves test performance from 0.614s down to 0.575s (1.07x faster). In a real world Plone case a reindex index came down from 402s to 320s (1.26x faster). See PR 156.

  • Change the C classes SpecificationBase and its subclass ClassProvidesBase to store implementation attributes in their structures instead of their instance dictionaries. This eliminates the use of an undocumented private C API function, and helps make some instances require less memory. See PR 154.

  • Reduce memory usage in other ways based on observations of usage patterns in Zope (3) and Plone code bases.

    • Specifications with no dependents are common (more than 50%) so avoid allocating a WeakKeyDictionary unless we need it.

    • Likewise, tagged values are relatively rare, so don’t allocate a dictionary to hold them until they are used.

    • Use __slots___ or the C equivalent tp_members in more common places. Note that this removes the ability to set arbitrary instance variables on certain objects. See PR 155.

    The changes in this release resulted in a 7% memory reduction after loading about 6,000 modules that define about 2,200 interfaces.

  • Remove support for hashing uninitialized interfaces. This could only be done by subclassing InterfaceClass. This has generated a warning since it was first added in 2011 (3.6.5). Please call the InterfaceClass constructor or otherwise set the appropriate fields in your subclass before attempting to hash or sort it. See issue 157.

  • Remove unneeded override of the __hash__ method from zope.interface.declarations.Implements. Watching a reindex index process in ZCatalog with on a Py-Spy after 10k samples the time for .adapter._lookup was reduced from 27.5s to 18.8s (~1.5x faster). Overall reindex index time shrunk from 369s to 293s (1.26x faster). See PR 161.

  • Make the Python implementation closer to the C implementation by ignoring all exceptions, not just AttributeError, during (parts of) interface adaptation. See issue 163.

  • Micro-optimization in .adapter._lookup , .adapter._lookupAll and .adapter._subscriptions: By loading components.get into a local variable before entering the loop a bytcode “LOAD_FAST 0 (components)” in the loop can be eliminated. In Plone, while running all tests, average speedup of the “owntime” of _lookup is ~5x. See PR 167.

  • Add __all__ declarations to all modules. This helps tools that do auto-completion and documentation and results in less cluttered results. Wildcard (“*”) are not recommended and may be affected. See issue 153.

  • Fix verifyClass and verifyObject for builtin types like dict that have methods taking an optional, unnamed argument with no default value like dict.pop. On PyPy3, the verification is strict, but on PyPy2 (as on all versions of CPython) those methods cannot be verified and are ignored. See issue 118.

  • Update the common interfaces IEnumerableMapping, IExtendedReadMapping, IExtendedWriteMapping, IReadSequence and IUniqueMemberWriteSequence to no longer require methods that were removed from Python 3 on Python 3, such as __setslice___. Now, dict, list and tuple properly verify as IFullMapping, ISequence and IReadSequence, respectively on all versions of Python.

  • Add human-readable __str___ and __repr___ to Attribute and Method. These contain the name of the defining interface and the attribute. For methods, it also includes the signature.

  • Change the error strings raised by verifyObject and verifyClass. They now include more human-readable information and exclude extraneous lines and spaces. See issue 170.

  • Make verifyObject and verifyClass report all errors, if the candidate object has multiple detectable violations. Previously they reported only the first error. See issue.

    Like the above, this will break consumers depending on the exact output of error messages if more than one error is present.

  • Add zope.interface.common.collections, zope.interface.common.numbers, and zope.interface.common.io. These modules define interfaces based on the ABCs defined in the standard library collections.abc, numbers and io modules, respectively. Importing these modules will make the standard library concrete classes that are registered with those ABCs declare the appropriate interface. See issue 138.

  • Add zope.interface.common.builtins. This module defines interfaces of common builtin types, such as ITextString and IByteString, IDict, etc. These interfaces extend the appropriate interfaces from collections and numbers, and the standard library classes implement them after importing this module. This is intended as a replacement for third-party packages like dolmen.builtins. See issue 138.

  • Make providedBy() and implementedBy() respect super objects. For instance, if class Derived implements IDerived and extends Base which in turn implements IBase, then providedBy(super(Derived, derived)) will return [IBase]. Previously it would have returned [IDerived] (in general, it would previously have returned whatever would have been returned without super).

    Along with this change, adapter registries will unpack super objects into their __self___ before passing it to the factory. Together, this means that component.getAdapter(super(Derived, self), ITarget) is now meaningful.

    See issue 11.

  • Fix a potential interpreter crash in the low-level adapter registry lookup functions. See issue 11.

  • Adopt Python’s standard C3 resolution order to compute the __iro__ and __sro__ of interfaces, with tweaks to support additional cases that are common in interfaces but disallowed for Python classes. Previously, an ad-hoc ordering that made no particular guarantees was used.

    This has many beneficial properties, including the fact that base interface and base classes tend to appear near the end of the resolution order instead of the beginning. The resolution order in general should be more predictable and consistent.

    The C3 order enforces some constraints in order to be able to guarantee a sensible ordering. Older versions of zope.interface did not impose similar constraints, so it was possible to create interfaces and declarations that are inconsistent with the C3 constraints. In that event, zope.interface will still produce a resolution order equal to the old order, but it won’t be guaranteed to be fully C3 compliant. In the future, strict enforcement of C3 order may be the default.

    A set of environment variables and module constants allows controlling several aspects of this new behaviour. It is possible to request warnings about inconsistent resolution orders encountered, and even to forbid them. Differences between the C3 resolution order and the previous order can be logged, and, in extreme cases, the previous order can still be used (this ability will be removed in the future). For details, see the documentation for zope.interface.ro.

  • Make inherited tagged values in interfaces respect the resolution order (__iro__), as method and attribute lookup does. Previously tagged values could give inconsistent results. See issue 190.

  • Add getDirectTaggedValue (and related methods) to interfaces to allow accessing tagged values irrespective of inheritance. See issue 190.

  • Ensure that Interface is always the last item in the __iro__ and __sro__. This is usually the case, but if classes that do not implement any interfaces are part of a class inheritance hierarchy, Interface could be assigned too high a priority. See issue 8.

  • Implement sorting, equality, and hashing in C for Interface objects. In micro benchmarks, this makes those operations 40% to 80% faster. This translates to a 20% speed up in querying adapters.

    Note that this changes certain implementation details. In particular, InterfaceClass now has a non-default metaclass, and it is enforced that __module__ in instances of InterfaceClass is read-only.

    See PR 183.

4.7.2 (2020-03-10)

  • Remove deprecated use of setuptools features. See issue 30.

4.7.1 (2019-11-11)

  • Use Python 3 syntax in the documentation. See issue 119.

4.7.0 (2019-11-11)

  • Drop support for Python 3.4.

  • Change queryTaggedValue, getTaggedValue, getTaggedValueTags in interfaces. They now include inherited values by following __bases__. See PR 144.

  • Add support for Python 3.8.

4.6.0 (2018-10-23)

  • Add support for Python 3.7

  • Fix verifyObject for class objects with staticmethods on Python 3. See issue 126.

4.5.0 (2018-04-19)

  • Drop support for 3.3, avoid accidental dependence breakage via setup.py. See PR 110.

  • Allow registering and unregistering instance methods as listeners. See issue 12 and PR 102.

  • Synchronize and simplify zope/__init__.py. See issue 114

4.4.3 (2017-09-22)

  • Avoid exceptions when the __annotations__ attribute is added to interface definitions with Python 3.x type hints. See issue 98.

  • Fix the possibility of a rare crash in the C extension when deallocating items. See issue 100.

4.4.2 (2017-06-14)

  • Fix a regression storing zope.component.persistentregistry.PersistentRegistry instances. See issue 85.

  • Fix a regression that could lead to the utility registration cache of Components getting out of sync. See issue 93.

4.4.1 (2017-05-13)

  • Simplify the caching of utility-registration data. In addition to simplification, avoids spurious test failures when checking for leaks in tests with persistent registries. See pull 84.

  • Raise ValueError when non-text names are passed to adapter registry methods: prevents corruption of lookup caches.

4.4.0 (2017-04-21)

4.3.3 (2016-12-13)

4.3.2 (2016-09-05)

4.3.1 (2016-08-31)

4.3.0 (2016-08-31)

4.2.0 (2016-06-10)

  • Add support for Python 3.5

  • Drop support for Python 2.6 and 3.2.

4.1.3 (2015-10-05)

4.1.2 (2014-12-27)

  • Add support for PyPy3.

  • Remove unittest assertions deprecated in Python3.x.

  • Add zope.interface.document.asReStructuredText, which formats the generated text for an interface using ReST double-backtick markers.

4.1.1 (2014-03-19)

  • Add support for Python 3.4.

4.1.0 (2014-02-05)

  • Update boostrap.py to version 2.2.

  • Add @named(name) declaration, that specifies the component name, so it does not have to be passed in during registration.

4.0.5 (2013-02-28)

  • Fix a bug where a decorated method caused false positive failures on verifyClass().

4.0.4 (2013-02-21)

  • Fix a bug that was revealed by porting zope.traversing. During a loop, the loop body modified a weakref dict causing a RuntimeError error.

4.0.3 (2012-12-31)

  • Fleshed out PyPI Trove classifiers.

4.0.2 (2012-11-21)

  • Add support for Python 3.3.

  • Restored ability to install the package in the absence of setuptools.

  • LP #1055223: Fix test which depended on dictionary order and failed randomly in Python 3.3.

4.0.1 (2012-05-22)

  • Drop explicit DeprecationWarnings for “class advice” APIS (these APIs are still deprecated under Python 2.x, and still raise an exception under Python 3.x, but no longer cause a warning to be emitted under Python 2.x).

4.0.0 (2012-05-16)

  • Automated build of Sphinx HTML docs and running doctest snippets via tox.

  • Deprecate the “class advice” APIs from zope.interface.declarations: implements, implementsOnly, and classProvides. In their place, prefer the equivalent class decorators: @implementer, @implementer_only, and @provider. Code which uses the deprecated APIs will not work as expected under Py3k.

  • Remove use of ‘2to3’ and associated fixers when installing under Py3k. The code is now in a “compatible subset” which supports Python 2.6, 2.7, and 3.2, including PyPy 1.8 (the version compatible with the 2.7 language spec).

  • Drop explicit support for Python 2.4 / 2.5 / 3.1.

  • Add support for PyPy.

  • Add support for continuous integration using tox and jenkins.

  • Add ‘setup.py dev’ alias (runs setup.py develop plus installs nose and coverage).

  • Add ‘setup.py docs’ alias (installs Sphinx and dependencies).

  • Replace all unittest coverage previously accomplished via doctests with unittests. The doctests have been moved into a docs section, managed as a Sphinx collection.

  • LP #910987: Ensure that the semantics of the lookup method of zope.interface.adapter.LookupBase are the same in both the C and Python implementations.

  • LP #900906: Avoid exceptions due to tne new __qualname__ attribute added in Python 3.3 (see PEP 3155 for rationale). Thanks to Antoine Pitrou for the patch.

3.8.0 (2011-09-22)

  • New module zope.interface.registry. This is code moved from zope.component.registry which implements a basic nonperistent component registry as zope.interface.registry.Components. This class was moved from zope.component to make porting systems (such as Pyramid) that rely only on a basic component registry to Python 3 possible without needing to port the entirety of the zope.component package. Backwards compatibility import shims have been left behind in zope.component, so this change will not break any existing code.

  • New tests_require dependency: zope.event to test events sent by Components implementation. The zope.interface package does not have a hard dependency on zope.event, but if zope.event is importable, it will send component registration events when methods of an instance of zope.interface.registry.Components are called.

  • New interfaces added to support zope.interface.registry.Components addition: ComponentLookupError, Invalid, IObjectEvent, ObjectEvent, IComponentLookup, IRegistration, IUtilityRegistration, IAdapterRegistration, ISubscriptionAdapterRegistration, IHandlerRegistration, IRegistrationEvent, RegistrationEvent, IRegistered, Registered, IUnregistered, Unregistered, IComponentRegistry, and IComponents.

  • No longer Python 2.4 compatible (tested under 2.5, 2.6, 2.7, and 3.2).

3.7.0 (2011-08-13)

  • Move changes from 3.6.2 - 3.6.5 to a new 3.7.x release line.

3.6.7 (2011-08-20)

  • Fix sporadic failures on x86-64 platforms in tests of rich comparisons of interfaces.

3.6.6 (2011-08-13)

  • LP #570942: Now correctly compare interfaces from different modules but with the same names.

    N.B.: This is a less intrusive / destabilizing fix than the one applied in 3.6.3: we only fix the underlying cmp-alike function, rather than adding the other “rich comparison” functions.

  • Revert to software as released with 3.6.1 for “stable” 3.6 release branch.

3.6.5 (2011-08-11)

  • LP #811792: work around buggy behavior in some subclasses of zope.interface.interface.InterfaceClass, which invoke __hash__ before initializing __module__ and __name__. The workaround returns a fixed constant hash in such cases, and issues a UserWarning.

  • LP #804832: Under PyPy, zope.interface should not build its C extension. Also, prevent attempting to build it under Jython.

  • Add a tox.ini for easier xplatform testing.

  • Fix testing deprecation warnings issued when tested under Py3K.

3.6.4 (2011-07-04)

  • LP 804951: InterfaceClass instances were unhashable under Python 3.x.

3.6.3 (2011-05-26)

  • LP #570942: Now correctly compare interfaces from different modules but with the same names.

3.6.2 (2011-05-17)

  • Moved detailed documentation out-of-line from PyPI page, linking instead to http://docs.zope.org/zope.interface .

  • Fixes for small issues when running tests under Python 3.2 using zope.testrunner.

  • LP # 675064: Specify return value type for C optimizations module init under Python 3: undeclared value caused warnings, and segfaults on some 64 bit architectures.

  • setup.py now raises RuntimeError if you don’t have Distutils installed when running under Python 3.

3.6.1 (2010-05-03)

  • A non-ASCII character in the changelog made 3.6.0 uninstallable on Python 3 systems with another default encoding than UTF-8.

  • Fix compiler warnings under GCC 4.3.3.

3.6.0 (2010-04-29)

  • LP #185974: Clear the cache used by Specificaton.get inside Specification.changed. Thanks to Jacob Holm for the patch.

  • Add support for Python 3.1. Contributors:

    Lennart Regebro Martin v Loewis Thomas Lotze Wolfgang Schnerring

    The 3.1 support is completely backwards compatible. However, the implements syntax used under Python 2.X does not work under 3.X, since it depends on how metaclasses are implemented and this has changed. Instead it now supports a decorator syntax (also under Python 2.X):

    class Foo:
        implements(IFoo)
        ...

    can now also be written:

    @implementer(IFoo):
    class Foo:
        ...

    There are 2to3 fixers available to do this change automatically in the zope.fixers package.

  • Python 2.3 is no longer supported.

3.5.4 (2009-12-23)

  • Use the standard Python doctest module instead of zope.testing.doctest, which has been deprecated.

3.5.3 (2009-12-08)

3.5.2 (2009-07-01)

  • BaseAdapterRegistry.unregister, unsubscribe: Remove empty portions of the data structures when something is removed. This avoids leaving references to global objects (interfaces) that may be slated for removal from the calling application.

3.5.1 (2009-03-18)

  • verifyObject: use getattr instead of hasattr to test for object attributes in order to let exceptions other than AttributeError raised by properties propagate to the caller

  • Add Sphinx-based documentation building to the package buildout configuration. Use the bin/docs command after buildout.

  • Improve package description a bit. Unify changelog entries formatting.

  • Change package’s mailing list address to zope-dev at zope.org as zope3-dev at zope.org is now retired.

3.5.0 (2008-10-26)

  • Fix declaration of _zope_interface_coptimizations, it’s not a top level package.

  • Add a DocTestSuite for odd.py module, so their tests are run.

  • Allow to bootstrap on Jython.

  • Fix https://bugs.launchpad.net/zope3/3.3/+bug/98388: ISpecification was missing a declaration for __iro__.

  • Add optional code optimizations support, which allows the building of C code optimizations to fail (Jython).

  • Replace _flatten with a non-recursive implementation, effectively making it 3x faster.

3.4.1 (2007-10-02)

  • Fix a setup bug that prevented installation from source on systems without setuptools.

3.4.0 (2007-07-19)

  • Final release for 3.4.0.

3.4.0b3 (2007-05-22)

  • When checking whether an object is already registered, use identity comparison, to allow adding registering with picky custom comparison methods.

3.3.0.1 (2007-01-03)

  • Made a reference to OverflowWarning, which disappeared in Python 2.5, conditional.

3.3.0 (2007/01/03)

New Features

  • Refactor the adapter-lookup algorithim to make it much simpler and faster.

    Also, implement more of the adapter-lookup logic in C, making debugging of application code easier, since there is less infrastructre code to step through.

  • Treat objects without interface declarations as if they declared that they provide zope.interface.Interface.

  • Add a number of richer new adapter-registration interfaces that provide greater control and introspection.

  • Add a new interface decorator to zope.interface that allows the setting of tagged values on an interface at definition time (see zope.interface.taggedValue).

Bug Fixes

  • A bug in multi-adapter lookup sometimes caused incorrect adapters to be returned.

3.2.0.2 (2006-04-15)

  • Fix packaging bug: ‘package_dir’ must be a relative path.

3.2.0.1 (2006-04-14)

  • Packaging change: suppress inclusion of ‘setup.cfg’ in ‘sdist’ builds.

3.2.0 (2006-01-05)

  • Corresponds to the version of the zope.interface package shipped as part of the Zope 3.2.0 release.

3.1.0 (2005-10-03)

  • Corresponds to the version of the zope.interface package shipped as part of the Zope 3.1.0 release.

  • Made attribute resolution order consistent with component lookup order, i.e. new-style class MRO semantics.

  • Deprecate ‘isImplementedBy’ and ‘isImplementedByInstancesOf’ APIs in favor of ‘implementedBy’ and ‘providedBy’.

3.0.1 (2005-07-27)

  • Corresponds to the version of the zope.interface package shipped as part of the Zope X3.0.1 release.

  • Fix a bug reported by James Knight, which caused adapter registries to fail occasionally to reflect declaration changes.

3.0.0 (2004-11-07)

  • Corresponds to the version of the zope.interface package shipped as part of the Zope X3.0.0 release.

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zope.interface-6.1a1.tar.gz (246.4 kB view details)

Uploaded Source

Built Distributions

zope.interface-6.1a1-cp311-cp311-win_amd64.whl (204.1 kB view details)

Uploaded CPython 3.11Windows x86-64

zope.interface-6.1a1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (249.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

zope.interface-6.1a1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (243.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

zope.interface-6.1a1-cp311-cp311-macosx_11_0_arm64.whl (202.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

zope.interface-6.1a1-cp311-cp311-macosx_10_9_x86_64.whl (202.4 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

zope.interface-6.1a1-cp310-cp310-win_amd64.whl (204.1 kB view details)

Uploaded CPython 3.10Windows x86-64

zope.interface-6.1a1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (247.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

zope.interface-6.1a1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (241.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

zope.interface-6.1a1-cp310-cp310-macosx_11_0_arm64.whl (202.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

zope.interface-6.1a1-cp310-cp310-macosx_10_9_x86_64.whl (202.4 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

zope.interface-6.1a1-cp39-cp39-win_amd64.whl (204.2 kB view details)

Uploaded CPython 3.9Windows x86-64

zope.interface-6.1a1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (246.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

zope.interface-6.1a1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (240.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

zope.interface-6.1a1-cp39-cp39-macosx_11_0_arm64.whl (202.5 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

zope.interface-6.1a1-cp39-cp39-macosx_10_9_x86_64.whl (202.4 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

zope.interface-6.1a1-cp38-cp38-win_amd64.whl (204.2 kB view details)

Uploaded CPython 3.8Windows x86-64

zope.interface-6.1a1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (249.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

zope.interface-6.1a1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (243.8 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

zope.interface-6.1a1-cp38-cp38-macosx_11_0_arm64.whl (202.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

zope.interface-6.1a1-cp38-cp38-macosx_10_9_x86_64.whl (202.4 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

zope.interface-6.1a1-cp37-cp37m-win_amd64.whl (204.0 kB view details)

Uploaded CPython 3.7mWindows x86-64

zope.interface-6.1a1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (241.6 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

zope.interface-6.1a1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (235.7 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

zope.interface-6.1a1-cp37-cp37m-macosx_10_15_x86_64.whl (202.3 kB view details)

Uploaded CPython 3.7mmacOS 10.15+ x86-64

File details

Details for the file zope.interface-6.1a1.tar.gz.

File metadata

  • Download URL: zope.interface-6.1a1.tar.gz
  • Upload date:
  • Size: 246.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for zope.interface-6.1a1.tar.gz
Algorithm Hash digest
SHA256 729ecde69ea9874670b993125567738f4819ebd4442b528ea649674b37a6061d
MD5 c320421202a9f0da801ef48f2ca91d2d
BLAKE2b-256 9d13dea39dc1f5739d7ff487ec9e5d7496685c9694edcf8b0f332036d31b0243

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b7813fe1a4761783a431ef66b2b259e201e44eab86aac1baf135933c49503e0d
MD5 c6c2168b1447c4cb232e622253c305e1
BLAKE2b-256 1a387294f8996a9a220fcfb5f381bf1c8a33a78ae357e8850aa40c21b5609e26

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2b0b30df96fbb2d74cfe75a817750cd9b33fcdc157274de5b0c0c305bccb31f9
MD5 8390208e32ed97351f72ae5219dc8109
BLAKE2b-256 417e09016607853e87a772276df0009ed2dc5ef32cbdbfbeee18f18fc1af14ad

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 35e5c85469ffe9749ba9f885eedaed233f0e1fd24ced06e5edf339af76b936fa
MD5 76b77faa0413fc16ca8e004a1d568fd6
BLAKE2b-256 f2e4a6c821c52c77e9853a04c5419fe4364699446f9e7cb9edc41e204da7e0c1

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86fbe6eadc071d9adb9d93b0c04e68b10b4905f3c27b4f5a25cdc805500b324c
MD5 a6ea71a351e11df9ddb0de77d1d5dc03
BLAKE2b-256 b05780815a2ae04a4b01c9739a014034b52e5c80ece0b28414962049671d8e49

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6710a62f15eb97c3da8a5123f4bf1c737b31f804999284c4f5755ef9d5d5d12b
MD5 3c94f3772b4ae77b0f7e468829067f22
BLAKE2b-256 2d258d639b53e785fd80c19209bdadcb657f8a54e482eea68226eba993202198

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3441752f3a05db1fb0644ffab487d327bf2af3fea8a13b4b3a5edb8725cb35b3
MD5 56c7f600df8c93fb4882fe5add647fe9
BLAKE2b-256 5731f22ede78b8d5c94b2ba8abb340b76f265b4db3617ad92813e1e42651941a

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0e7ced5288b86a4cfddeb87dde63dea1282117c5e776acfc1ad51c4a479a288e
MD5 a236ba3fe139f0a941ab18698ee33c26
BLAKE2b-256 36d1622b6017558bb8f8b59e245e0ae4e301c1e6e79b8bc72e07544fc908257c

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 27588c83329e657c2d038337d7f0e4f2daf3855a89ae197eb5312332f4e32520
MD5 b73f17680af2d8dac021a60730ab7e2e
BLAKE2b-256 884c41705b272ae9dd7988572b1956800b950ad7305ee30dc005759ec98dba25

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb4a242055d11fbbc7f553808ba63c6997aa34f42962bf052682ff6e4997461b
MD5 b467336afa6ac8bab8dc4fbfb68d0fb1
BLAKE2b-256 1977da971fb71f335442ebd07657d8d8277b2f7560c261c5ae8c46b0596d062f

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4270dc3115c295d86fffbf63c2bd9cb7e2ea8ab9c6b1e70d1c411975b4f58a25
MD5 2bbd63c84c77bcfbbf87fde0ee0e87c4
BLAKE2b-256 fd01969e03756ed81cdce74fa2fd709cbc7751b4574b0dc8594c6ae0face7dd9

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 363c950c5c1e47e9d6184854c4fcf571c3d1b8846a71b7e0d1203b3dd3bb1fba
MD5 f8ccef2202313c69967010c191e06bb6
BLAKE2b-256 c2309b323c102746c8abe54110bbe9ef66ac66c4ff55b065d2b1dc568ba83c7b

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4e87274a2c58d3ae9abccbc663eebbf7b2972e8c3fc1a2513fce864f366f7ff8
MD5 45780cd29281a23f769f16ef75d9cb4d
BLAKE2b-256 31c9d646edf6eb3869548c5005804da6e397453f5120059b83957382790f3687

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 7359307ce85ccf5800ab836c16824f97672d22ab8541802e55fcfbe585198e47
MD5 b9330bf039fd4b5295678210c16df94e
BLAKE2b-256 ae9912eef45130fe534a14e8ae76614a20fd072599a8fee9f1fb5844aafcaf79

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d209430d75eaa5cda793cf704faf1129b4d2dc0ca64e5d54db1d17bb5a52ce4
MD5 3ba0359d962d814d763a3922d213bb7c
BLAKE2b-256 132ff4b8dba8a37c4cd636cb785649093e8039e37f3d67a910f7f7c9bfa6e48d

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 03f9cd0bd669b37c8290c2c04e6bdba321b24d4301daa40000e9d0376908b86f
MD5 40a515a28df7b56550c3ff7ae43bdbea
BLAKE2b-256 22ff1050f9e29be56d609cf8799aa44987491622751e8e8e861237c7b385ae81

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a87beabbdf45640c9c0188e1318df0d7e8ef0ccc80933227581ce9d2e6cccd35
MD5 4fb5f6bb042dcc3a8f5b4745372d196c
BLAKE2b-256 5ca7e03f48e00f587c43df08191335d2a36eecf104bef817fc52b55edc465b3d

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5e04480b88ccadd0ce691551d3af9657c3a24b53993196a8078241c9a05616b0
MD5 f9bcfb13d98bcc2401d5a7b8f1ee94fc
BLAKE2b-256 797ae74dcc23ca39fd3b0c6058850df92d911c97a994163d9e22094145478acb

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 1f60c12d644e77120bf0a88d0082214c34529b08b85835972da2a1407fb5b5b7
MD5 249a0817b3a9d45aa212f9aeccb957d1
BLAKE2b-256 eaff1ff0604180002ad2cbb3611f9560432ebd899bd7b896888d6f5bac11b81b

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbd3da2c4d3dd6fcf9be427825b5137ffed2a8395a696a7a4613e9bcd4dffe10
MD5 0cf5eba514c82a4842804f9dcad896cd
BLAKE2b-256 68eb53ef9c2e0048a98a695f078c329a99bffc1bea88116646e72361571d9295

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e59e4679ec69ddc5e08261fda82278ab7fb1fa6eb5b850d3165742c1bbb6ec1d
MD5 a766c9d72a8e782ab839ee309a0bac77
BLAKE2b-256 2cc69a622f1ccb7148ffd632d0c8858496381337273a57135cfe3b7aa40a227c

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 2373f505028da08aaf6c8bba2da6227fbca9c767dd9962b59416749c8ea1f6a3
MD5 c390745fba3db14cf623c9b97bd1169f
BLAKE2b-256 d3cd20e10400204eeb0610411f87cf1d77a45e503acae190efc275b82a08785c

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 632ede9e163847e9c12b214e376ef6fbc639c9c700a3b0175ba8361cff82d069
MD5 6fdbd44cfe387b4de5c8e081c2a96135
BLAKE2b-256 9bfe2938a0cc19a9f79038b3d6445b1b8b04f417d0374f0e2277b3181e7f7900

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 09e531f7b553f195a5d02c7974d71d6646ce2a5675f85c0ed4479d754c776b8d
MD5 ff680a0e11b88737a2b8be146f89e192
BLAKE2b-256 0e20f697083b536b4fa3ccd030ac6b0c1a3188baf5dbf595c0055d089a9e1032

See more details on using hashes here.

File details

Details for the file zope.interface-6.1a1-cp37-cp37m-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for zope.interface-6.1a1-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 b8cf747b32cf47eb30960dda3593e7c386cfd4eac4d1697fb911b7608f00c6c4
MD5 1f863f54eec41db88f21dc9a6875c821
BLAKE2b-256 5c20d07c8ec19a210633f1cb9bb0546f52e32cd52c35ec37a61e6913c734b757

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page