METADATA 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208
  1. Metadata-Version: 2.1
  2. Name: zope.interface
  3. Version: 7.1.0
  4. Summary: Interfaces for Python
  5. Home-page: https://github.com/zopefoundation/zope.interface
  6. Author: Zope Foundation and Contributors
  7. Author-email: zope-dev@zope.dev
  8. License: ZPL 2.1
  9. Keywords: interface,components,plugins
  10. Classifier: Development Status :: 5 - Production/Stable
  11. Classifier: Intended Audience :: Developers
  12. Classifier: License :: OSI Approved :: Zope Public License
  13. Classifier: Operating System :: OS Independent
  14. Classifier: Programming Language :: Python
  15. Classifier: Programming Language :: Python :: 3
  16. Classifier: Programming Language :: Python :: 3.8
  17. Classifier: Programming Language :: Python :: 3.9
  18. Classifier: Programming Language :: Python :: 3.10
  19. Classifier: Programming Language :: Python :: 3.11
  20. Classifier: Programming Language :: Python :: 3.12
  21. Classifier: Programming Language :: Python :: 3.13
  22. Classifier: Programming Language :: Python :: Implementation :: CPython
  23. Classifier: Programming Language :: Python :: Implementation :: PyPy
  24. Classifier: Framework :: Zope :: 3
  25. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  26. Requires-Python: >=3.8
  27. Description-Content-Type: text/x-rst
  28. License-File: LICENSE.txt
  29. Requires-Dist: setuptools
  30. Provides-Extra: docs
  31. Requires-Dist: Sphinx ; extra == 'docs'
  32. Requires-Dist: repoze.sphinx.autointerface ; extra == 'docs'
  33. Requires-Dist: furo ; extra == 'docs'
  34. Provides-Extra: test
  35. Requires-Dist: coverage[toml] ; extra == 'test'
  36. Requires-Dist: zope.event ; extra == 'test'
  37. Requires-Dist: zope.testing ; extra == 'test'
  38. Provides-Extra: testing
  39. Requires-Dist: coverage[toml] ; extra == 'testing'
  40. Requires-Dist: zope.event ; extra == 'testing'
  41. Requires-Dist: zope.testing ; extra == 'testing'
  42. ====================
  43. ``zope.interface``
  44. ====================
  45. .. image:: https://img.shields.io/pypi/v/zope.interface.svg
  46. :target: https://pypi.python.org/pypi/zope.interface/
  47. :alt: Latest Version
  48. .. image:: https://img.shields.io/pypi/pyversions/zope.interface.svg
  49. :target: https://pypi.org/project/zope.interface/
  50. :alt: Supported Python versions
  51. .. image:: https://github.com/zopefoundation/zope.interface/actions/workflows/tests.yml/badge.svg
  52. :target: https://github.com/zopefoundation/zope.interface/actions/workflows/tests.yml
  53. .. image:: https://readthedocs.org/projects/zopeinterface/badge/?version=latest
  54. :target: https://zopeinterface.readthedocs.io/en/latest/
  55. :alt: Documentation Status
  56. This package is intended to be independently reusable in any Python
  57. project. It is maintained by the `Zope Toolkit project
  58. <https://zopetoolkit.readthedocs.io/>`_.
  59. This package provides an implementation of "object interfaces" for Python.
  60. Interfaces are a mechanism for labeling objects as conforming to a given
  61. API or contract. So, this package can be considered as implementation of
  62. the `Design By Contract`_ methodology support in Python.
  63. .. _Design By Contract: http://en.wikipedia.org/wiki/Design_by_contract
  64. For detailed documentation, please see https://zopeinterface.readthedocs.io/en/latest/
  65. =========
  66. Changes
  67. =========
  68. 7.1.0 (2024-10-10)
  69. ==================
  70. - Declare support for Python 3.13.
  71. - Fix segmentation faults on Python 3.13.
  72. (`#323 <https://github.com/zopefoundation/zope.interface/issues/323>`_)
  73. 7.0.3 (2024-08-27)
  74. ==================
  75. - Fix `Assertion 'memb->type == T_PYSSIZET' failed.` for Python < 3.12.
  76. (`#319 <https://github.com/zopefoundation/zope.interface/issues/319>`_)
  77. 7.0.2 (2024-08-26)
  78. ==================
  79. - Fix reference-counting bug in C module initialization (broken in 7.0).
  80. (`#316 <https://github.com/zopefoundation/zope.interface/issues/316>`_)
  81. 7.0.1 (2024-08-06)
  82. ==================
  83. - Fix subclassability of ``ObjectSpecificationDescriptor`` (broken in 7.0).
  84. (`#312 <https://github.com/zopefoundation/zope.interface/issues/312>`_)
  85. 7.0 (2024-08-06)
  86. ================
  87. - Enable heap-based types (PEP 384) for Python >= 3.11.
  88. - Adopt multi-phase module initialization (PEP 489).
  89. - Drop support for Python 3.7.
  90. 6.4.post2 (2024-05-24)
  91. ======================
  92. - Publish missing Windows wheels, second attempt.
  93. (`#295 <https://github.com/zopefoundation/zope.interface/issues/295>`_)
  94. 6.4.post1 (2024-05-23)
  95. ======================
  96. - Publish missing Windows wheels.
  97. (`#295 <https://github.com/zopefoundation/zope.interface/issues/295>`_)
  98. 6.4.post0 (2024-05-22)
  99. ======================
  100. - The sdist of version 6.4 was uploaded to PyPI as
  101. ``zope_interface-6.4.tar.gz`` instead of ``zope.interface-6.4-py2.tar.gz``
  102. which cannot be installed by ``zc.buildout``. This release is a re-release
  103. of version 6.4 with the correct sdist name.
  104. (`#298 <https://github.com/zopefoundation/zope.interface/issues/298>`_)
  105. 6.4 (2024-05-15)
  106. ================
  107. - Adjust for incompatible changes in Python 3.13b1.
  108. (`#292 <https://github.com/zopefoundation/zope.interface/issues/292>`_)
  109. - Build windows wheels on GHA.
  110. 6.3 (2024-04-12)
  111. ================
  112. - Add preliminary support for Python 3.13 as of 3.13a6.
  113. 6.2 (2024-02-16)
  114. ================
  115. - Add preliminary support for Python 3.13 as of 3.13a3.
  116. - Add support to use the pipe (``|``) syntax for ``typing.Union``.
  117. (`#280 <https://github.com/zopefoundation/zope.interface/issues/280>`_)
  118. 6.1 (2023-10-05)
  119. ================
  120. - Build Linux binary wheels for Python 3.12.
  121. - Add support for Python 3.12.
  122. - Fix building of the docs for non-final versions.
  123. 6.0 (2023-03-17)
  124. ================
  125. - Build Linux binary wheels for Python 3.11.
  126. - Drop support for Python 2.7, 3.5, 3.6.
  127. - Fix test deprecation warning on Python 3.11.
  128. - Add preliminary support for Python 3.12 as of 3.12a5.
  129. - Drop:
  130. + `zope.interface.implements`
  131. + `zope.interface.implementsOnly`
  132. + `zope.interface.classProvides`
  133. 5.5.2 (2022-11-17)
  134. ==================
  135. - Add support for building arm64 wheels on macOS.
  136. 5.5.1 (2022-11-03)
  137. ==================
  138. - Add support for final Python 3.11 release.
  139. 5.5.0 (2022-10-10)
  140. ==================
  141. - Add support for Python 3.10 and 3.11 (as of 3.11.0rc2).
  142. - Add missing Trove classifier showing support for Python 3.9.
  143. - Add some more entries to ``zope.interface.interfaces.__all__``.
  144. - Disable unsafe math optimizations in C code. See `pull request 262
  145. <https://github.com/zopefoundation/zope.interface/pull/262>`_.
  146. 5.4.0 (2021-04-15)
  147. ==================
  148. - Make the C implementation of the ``__providedBy__`` descriptor stop
  149. ignoring all errors raised when accessing the instance's
  150. ``__provides__``. Now it behaves like the Python version and only
  151. catches ``AttributeError``. The previous behaviour could lead to
  152. crashing the interpreter in cases of recursion and errors. See
  153. `issue 239 <https://github.com/zopefoundation/zope.interface/issues>`_.
  154. - Update the ``repr()`` and ``str()`` of various objects to be shorter
  155. and more informative. In many cases, the ``repr()`` is now something
  156. that can be evaluated to produce an equal object. For example, what
  157. was previously printed as ``<implementedBy builtins.list>`` is now
  158. shown as ``classImplements(list, IMutableSequence, IIterable)``. See
  159. `issue 236 <https://github.com/zopefoundation/zope.interface/issues/236>`_.
  160. - Make ``Declaration.__add__`` (as in ``implementedBy(Cls) +
  161. ISomething``) try harder to preserve a consistent resolution order
  162. when the two arguments share overlapping pieces of the interface
  163. inheritance hierarchy. Previously, the right hand side was always
  164. put at the end of the resolution order, which could easily produce
  165. invalid orders. See `issue 193
  166. <https://github.com/zopefoundation/zope.interface/issues/193>`_.
  167. 5.3.0 (2020-03-21)
  168. ==================
  169. - No changes from 5.3.0a1
  170. 5.3.0a1 (2021-03-18)
  171. ====================
  172. - Improve the repr of ``zope.interface.Provides`` to remove ambiguity
  173. about what is being provided. This is especially helpful diagnosing
  174. IRO issues.
  175. - Allow subclasses of ``BaseAdapterRegistry`` (including
  176. ``AdapterRegistry`` and ``VerifyingAdapterRegistry``) to have
  177. control over the data structures. This allows persistent
  178. implementations such as those based on ZODB to choose more scalable
  179. options (e.g., BTrees instead of dicts). See `issue 224
  180. <https://github.com/zopefoundation/zope.interface/issues/224>`_.
  181. - Fix a reference counting issue in ``BaseAdapterRegistry`` that could
  182. lead to references to interfaces being kept around even when all
  183. utilities/adapters/subscribers providing that interface have been
  184. removed. This is mostly an issue for persistent implementations.
  185. Note that this only corrects the issue moving forward, it does not
  186. solve any already corrupted reference counts. See `issue 227
  187. <https://github.com/zopefoundation/zope.interface/issues/227>`_.
  188. - Add the method ``BaseAdapterRegistry.rebuild()``. This can be used
  189. to fix the reference counting issue mentioned above, as well as to
  190. update the data structures when custom data types have changed.
  191. - Add the interface method ``IAdapterRegistry.subscribed()`` and
  192. implementation ``BaseAdapterRegistry.subscribed()`` for querying
  193. directly registered subscribers. See `issue 230
  194. <https://github.com/zopefoundation/zope.interface/issues/230>`_.
  195. - Add the maintenance method
  196. ``Components.rebuildUtilityRegistryFromLocalCache()``. Most users
  197. will not need this, but it can be useful if the ``Components.utilities``
  198. registry is suspected to be out of sync with the ``Components``
  199. object itself (this might happen to persistent ``Components``
  200. implementations in the face of bugs).
  201. - Fix the ``Provides`` and ``ClassProvides`` descriptors to stop
  202. allowing redundant interfaces (those already implemented by the
  203. underlying class or meta class) to produce an inconsistent
  204. resolution order. This is similar to the change in ``@implementer``
  205. in 5.1.0, and resolves inconsistent resolution orders with
  206. ``zope.proxy`` and ``zope.location``. See `issue 207
  207. <https://github.com/zopefoundation/zope.interface/issues/207>`_.
  208. 5.2.0 (2020-11-05)
  209. ==================
  210. - Add documentation section ``Persistency and Equality``
  211. (`#218 <https://github.com/zopefoundation/zope.interface/issues/218>`_).
  212. - Create arm64 wheels.
  213. - Add support for Python 3.9.
  214. 5.1.2 (2020-10-01)
  215. ==================
  216. - Make sure to call each invariant only once when validating invariants.
  217. Previously, invariants could be called multiple times because when an
  218. invariant is defined in an interface, it's found by in all interfaces
  219. inheriting from that interface. See `pull request 215
  220. <https://github.com/zopefoundation/zope.interface/pull/215/>`_.
  221. 5.1.1 (2020-09-30)
  222. ==================
  223. - Fix the method definitions of ``IAdapterRegistry.subscribe``,
  224. ``subscriptions`` and ``subscribers``. Previously, they all were
  225. defined to accept a ``name`` keyword argument, but subscribers have
  226. no names and the implementation of that interface did not accept
  227. that argument. See `issue 208
  228. <https://github.com/zopefoundation/zope.interface/issues/208>`_.
  229. - Fix a potential reference leak in the C optimizations. Previously,
  230. applications that dynamically created unique ``Specification``
  231. objects (e.g., used ``@implementer`` on dynamic classes) could
  232. notice a growth of small objects over time leading to increased
  233. garbage collection times. See `issue 216
  234. <https://github.com/zopefoundation/zope.interface/issues/216>`_.
  235. .. caution::
  236. This leak could prevent interfaces used as the bases of
  237. other interfaces from being garbage collected. Those interfaces
  238. will now be collected.
  239. One way in which this would manifest was that ``weakref.ref``
  240. objects (and things built upon them, like
  241. ``Weak[Key|Value]Dictionary``) would continue to have access to
  242. the original object even if there were no other visible
  243. references to Python and the original object *should* have been
  244. collected. This could be especially problematic for the
  245. ``WeakKeyDictionary`` when combined with dynamic or local
  246. (created in the scope of a function) interfaces, since interfaces
  247. are hashed based just on their name and module name. See the
  248. linked issue for an example of a resulting ``KeyError``.
  249. Note that such potential errors are not new, they are just once
  250. again a possibility.
  251. 5.1.0 (2020-04-08)
  252. ==================
  253. - Make ``@implementer(*iface)`` and ``classImplements(cls, *iface)``
  254. ignore redundant interfaces. If the class already implements an
  255. interface through inheritance, it is no longer redeclared
  256. specifically for *cls*. This solves many instances of inconsistent
  257. resolution orders, while still allowing the interface to be declared
  258. for readability and maintenance purposes. See `issue 199
  259. <https://github.com/zopefoundation/zope.interface/issues/199>`_.
  260. - Remove all bare ``except:`` statements. Previously, when accessing
  261. special attributes such as ``__provides__``, ``__providedBy__``,
  262. ``__class__`` and ``__conform__``, this package wrapped such access
  263. in a bare ``except:`` statement, meaning that many errors could pass
  264. silently; typically this would result in a fallback path being taken
  265. and sometimes (like with ``providedBy()``) the result would be
  266. non-sensical. This is especially true when those attributes are
  267. implemented with descriptors. Now, only ``AttributeError`` is
  268. caught. This makes errors more obvious.
  269. Obviously, this means that some exceptions will be propagated
  270. differently than before. In particular, ``RuntimeError`` raised by
  271. Acquisition in the case of circular containment will now be
  272. propagated. Previously, when adapting such a broken object, a
  273. ``TypeError`` would be the common result, but now it will be a more
  274. informative ``RuntimeError``.
  275. In addition, ZODB errors like ``POSKeyError`` could now be
  276. propagated where previously they would ignored by this package.
  277. See `issue 200 <https://github.com/zopefoundation/zope.interface/issues/200>`_.
  278. - Require that the second argument (*bases*) to ``InterfaceClass`` is
  279. a tuple. This only matters when directly using ``InterfaceClass`` to
  280. create new interfaces dynamically. Previously, an individual
  281. interface was allowed, but did not work correctly. Now it is
  282. consistent with ``type`` and requires a tuple.
  283. - Let interfaces define custom ``__adapt__`` methods. This implements
  284. the other side of the :pep:`246` adaptation protocol: objects being
  285. adapted could already implement ``__conform__`` if they know about
  286. the interface, and now interfaces can implement ``__adapt__`` if
  287. they know about particular objects. There is no performance penalty
  288. for interfaces that do not supply custom ``__adapt__`` methods.
  289. This includes the ability to add new methods, or override existing
  290. interface methods using the new ``@interfacemethod`` decorator.
  291. See `issue 3 <https://github.com/zopefoundation/zope.interface/issues/3>`_.
  292. - Make the internal singleton object returned by APIs like
  293. ``implementedBy`` and ``directlyProvidedBy`` for objects that
  294. implement or provide no interfaces more immutable. Previously an
  295. internal cache could be mutated. See `issue 204
  296. <https://github.com/zopefoundation/zope.interface/issues/204>`_.
  297. 5.0.2 (2020-03-30)
  298. ==================
  299. - Ensure that objects that implement no interfaces (such as direct
  300. subclasses of ``object``) still include ``Interface`` itself in
  301. their ``__iro___`` and ``__sro___``. This fixes adapter registry
  302. lookups for such objects when the adapter is registered for
  303. ``Interface``. See `issue 197
  304. <https://github.com/zopefoundation/zope.interface/issues/197>`_.
  305. 5.0.1 (2020-03-21)
  306. ==================
  307. - Ensure the resolution order for ``InterfaceClass`` is consistent.
  308. See `issue 192 <https://github.com/zopefoundation/zope.interface/issues/192>`_.
  309. - Ensure the resolution order for ``collections.OrderedDict`` is
  310. consistent on CPython 2. (It was already consistent on Python 3 and PyPy).
  311. - Fix the handling of the ``ZOPE_INTERFACE_STRICT_IRO`` environment
  312. variable. Previously, ``ZOPE_INTERFACE_STRICT_RO`` was read, in
  313. contrast with the documentation. See `issue 194
  314. <https://github.com/zopefoundation/zope.interface/issues/194>`_.
  315. 5.0.0 (2020-03-19)
  316. ==================
  317. - Make an internal singleton object returned by APIs like
  318. ``implementedBy`` and ``directlyProvidedBy`` immutable. Previously,
  319. it was fully mutable and allowed changing its ``__bases___``. That
  320. could potentially lead to wrong results in pathological corner
  321. cases. See `issue 158
  322. <https://github.com/zopefoundation/zope.interface/issues/158>`_.
  323. - Support the ``PURE_PYTHON`` environment variable at runtime instead
  324. of just at wheel build time. A value of 0 forces the C extensions to
  325. be used (even on PyPy) failing if they aren't present. Any other
  326. value forces the Python implementation to be used, ignoring the C
  327. extensions. See `PR 151 <https://github.com/zopefoundation/zope.interface/pull/151>`_.
  328. - Cache the result of ``__hash__`` method in ``InterfaceClass`` as a
  329. speed optimization. The method is called very often (i.e several
  330. hundred thousand times during Plone 5.2 startup). Because the hash value never
  331. changes it can be cached. This improves test performance from 0.614s
  332. down to 0.575s (1.07x faster). In a real world Plone case a reindex
  333. index came down from 402s to 320s (1.26x faster). See `PR 156
  334. <https://github.com/zopefoundation/zope.interface/pull/156>`_.
  335. - Change the C classes ``SpecificationBase`` and its subclass
  336. ``ClassProvidesBase`` to store implementation attributes in their structures
  337. instead of their instance dictionaries. This eliminates the use of
  338. an undocumented private C API function, and helps make some
  339. instances require less memory. See `PR 154 <https://github.com/zopefoundation/zope.interface/pull/154>`_.
  340. - Reduce memory usage in other ways based on observations of usage
  341. patterns in Zope (3) and Plone code bases.
  342. - Specifications with no dependents are common (more than 50%) so
  343. avoid allocating a ``WeakKeyDictionary`` unless we need it.
  344. - Likewise, tagged values are relatively rare, so don't allocate a
  345. dictionary to hold them until they are used.
  346. - Use ``__slots___`` or the C equivalent ``tp_members`` in more
  347. common places. Note that this removes the ability to set arbitrary
  348. instance variables on certain objects.
  349. See `PR 155 <https://github.com/zopefoundation/zope.interface/pull/155>`_.
  350. The changes in this release resulted in a 7% memory reduction after
  351. loading about 6,000 modules that define about 2,200 interfaces.
  352. .. caution::
  353. Details of many private attributes have changed, and external use
  354. of those private attributes may break. In particular, the
  355. lifetime and default value of ``_v_attrs`` has changed.
  356. - Remove support for hashing uninitialized interfaces. This could only
  357. be done by subclassing ``InterfaceClass``. This has generated a
  358. warning since it was first added in 2011 (3.6.5). Please call the
  359. ``InterfaceClass`` constructor or otherwise set the appropriate
  360. fields in your subclass before attempting to hash or sort it. See
  361. `issue 157 <https://github.com/zopefoundation/zope.interface/issues/157>`_.
  362. - Remove unneeded override of the ``__hash__`` method from
  363. ``zope.interface.declarations.Implements``. Watching a reindex index
  364. process in ZCatalog with on a Py-Spy after 10k samples the time for
  365. ``.adapter._lookup`` was reduced from 27.5s to 18.8s (~1.5x faster).
  366. Overall reindex index time shrunk from 369s to 293s (1.26x faster).
  367. See `PR 161
  368. <https://github.com/zopefoundation/zope.interface/pull/161>`_.
  369. - Make the Python implementation closer to the C implementation by
  370. ignoring all exceptions, not just ``AttributeError``, during (parts
  371. of) interface adaptation. See `issue 163
  372. <https://github.com/zopefoundation/zope.interface/issues/163>`_.
  373. - Micro-optimization in ``.adapter._lookup`` , ``.adapter._lookupAll``
  374. and ``.adapter._subscriptions``: By loading ``components.get`` into
  375. a local variable before entering the loop a bytcode "LOAD_FAST 0
  376. (components)" in the loop can be eliminated. In Plone, while running
  377. all tests, average speedup of the "owntime" of ``_lookup`` is ~5x.
  378. See `PR 167
  379. <https://github.com/zopefoundation/zope.interface/pull/167>`_.
  380. - Add ``__all__`` declarations to all modules. This helps tools that
  381. do auto-completion and documentation and results in less cluttered
  382. results. Wildcard ("*") are not recommended and may be affected. See
  383. `issue 153
  384. <https://github.com/zopefoundation/zope.interface/issues/153>`_.
  385. - Fix ``verifyClass`` and ``verifyObject`` for builtin types like
  386. ``dict`` that have methods taking an optional, unnamed argument with
  387. no default value like ``dict.pop``. On PyPy3, the verification is
  388. strict, but on PyPy2 (as on all versions of CPython) those methods
  389. cannot be verified and are ignored. See `issue 118
  390. <https://github.com/zopefoundation/zope.interface/issues/118>`_.
  391. - Update the common interfaces ``IEnumerableMapping``,
  392. ``IExtendedReadMapping``, ``IExtendedWriteMapping``,
  393. ``IReadSequence`` and ``IUniqueMemberWriteSequence`` to no longer
  394. require methods that were removed from Python 3 on Python 3, such as
  395. ``__setslice___``. Now, ``dict``, ``list`` and ``tuple`` properly
  396. verify as ``IFullMapping``, ``ISequence`` and ``IReadSequence,``
  397. respectively on all versions of Python.
  398. - Add human-readable ``__str___`` and ``__repr___`` to ``Attribute``
  399. and ``Method``. These contain the name of the defining interface
  400. and the attribute. For methods, it also includes the signature.
  401. - Change the error strings raised by ``verifyObject`` and
  402. ``verifyClass``. They now include more human-readable information
  403. and exclude extraneous lines and spaces. See `issue 170
  404. <https://github.com/zopefoundation/zope.interface/issues/170>`_.
  405. .. caution:: This will break consumers (such as doctests) that
  406. depended on the exact error messages.
  407. - Make ``verifyObject`` and ``verifyClass`` report all errors, if the
  408. candidate object has multiple detectable violations. Previously they
  409. reported only the first error. See `issue
  410. <https://github.com/zopefoundation/zope.interface/issues/171>`_.
  411. Like the above, this will break consumers depending on the exact
  412. output of error messages if more than one error is present.
  413. - Add ``zope.interface.common.collections``,
  414. ``zope.interface.common.numbers``, and ``zope.interface.common.io``.
  415. These modules define interfaces based on the ABCs defined in the
  416. standard library ``collections.abc``, ``numbers`` and ``io``
  417. modules, respectively. Importing these modules will make the
  418. standard library concrete classes that are registered with those
  419. ABCs declare the appropriate interface. See `issue 138
  420. <https://github.com/zopefoundation/zope.interface/issues/138>`_.
  421. - Add ``zope.interface.common.builtins``. This module defines
  422. interfaces of common builtin types, such as ``ITextString`` and
  423. ``IByteString``, ``IDict``, etc. These interfaces extend the
  424. appropriate interfaces from ``collections`` and ``numbers``, and the
  425. standard library classes implement them after importing this module.
  426. This is intended as a replacement for third-party packages like
  427. `dolmen.builtins <https://pypi.org/project/dolmen.builtins/>`_.
  428. See `issue 138 <https://github.com/zopefoundation/zope.interface/issues/138>`_.
  429. - Make ``providedBy()`` and ``implementedBy()`` respect ``super``
  430. objects. For instance, if class ``Derived`` implements ``IDerived``
  431. and extends ``Base`` which in turn implements ``IBase``, then
  432. ``providedBy(super(Derived, derived))`` will return ``[IBase]``.
  433. Previously it would have returned ``[IDerived]`` (in general, it
  434. would previously have returned whatever would have been returned
  435. without ``super``).
  436. Along with this change, adapter registries will unpack ``super``
  437. objects into their ``__self___`` before passing it to the factory.
  438. Together, this means that ``component.getAdapter(super(Derived,
  439. self), ITarget)`` is now meaningful.
  440. See `issue 11 <https://github.com/zopefoundation/zope.interface/issues/11>`_.
  441. - Fix a potential interpreter crash in the low-level adapter
  442. registry lookup functions. See issue 11.
  443. - Adopt Python's standard `C3 resolution order
  444. <https://www.python.org/download/releases/2.3/mro/>`_ to compute the
  445. ``__iro__`` and ``__sro__`` of interfaces, with tweaks to support
  446. additional cases that are common in interfaces but disallowed for
  447. Python classes. Previously, an ad-hoc ordering that made no
  448. particular guarantees was used.
  449. This has many beneficial properties, including the fact that base
  450. interface and base classes tend to appear near the end of the
  451. resolution order instead of the beginning. The resolution order in
  452. general should be more predictable and consistent.
  453. .. caution::
  454. In some cases, especially with complex interface inheritance
  455. trees or when manually providing or implementing interfaces, the
  456. resulting IRO may be quite different. This may affect adapter
  457. lookup.
  458. The C3 order enforces some constraints in order to be able to
  459. guarantee a sensible ordering. Older versions of zope.interface did
  460. not impose similar constraints, so it was possible to create
  461. interfaces and declarations that are inconsistent with the C3
  462. constraints. In that event, zope.interface will still produce a
  463. resolution order equal to the old order, but it won't be guaranteed
  464. to be fully C3 compliant. In the future, strict enforcement of C3
  465. order may be the default.
  466. A set of environment variables and module constants allows
  467. controlling several aspects of this new behaviour. It is possible to
  468. request warnings about inconsistent resolution orders encountered,
  469. and even to forbid them. Differences between the C3 resolution order
  470. and the previous order can be logged, and, in extreme cases, the
  471. previous order can still be used (this ability will be removed in
  472. the future). For details, see the documentation for
  473. ``zope.interface.ro``.
  474. - Make inherited tagged values in interfaces respect the resolution
  475. order (``__iro__``), as method and attribute lookup does. Previously
  476. tagged values could give inconsistent results. See `issue 190
  477. <https://github.com/zopefoundation/zope.interface/issues/190>`_.
  478. - Add ``getDirectTaggedValue`` (and related methods) to interfaces to
  479. allow accessing tagged values irrespective of inheritance. See
  480. `issue 190
  481. <https://github.com/zopefoundation/zope.interface/issues/190>`_.
  482. - Ensure that ``Interface`` is always the last item in the ``__iro__``
  483. and ``__sro__``. This is usually the case, but if classes that do
  484. not implement any interfaces are part of a class inheritance
  485. hierarchy, ``Interface`` could be assigned too high a priority.
  486. See `issue 8 <https://github.com/zopefoundation/zope.interface/issues/8>`_.
  487. - Implement sorting, equality, and hashing in C for ``Interface``
  488. objects. In micro benchmarks, this makes those operations 40% to 80%
  489. faster. This translates to a 20% speed up in querying adapters.
  490. Note that this changes certain implementation details. In
  491. particular, ``InterfaceClass`` now has a non-default metaclass, and
  492. it is enforced that ``__module__`` in instances of
  493. ``InterfaceClass`` is read-only.
  494. See `PR 183 <https://github.com/zopefoundation/zope.interface/pull/183>`_.
  495. 4.7.2 (2020-03-10)
  496. ==================
  497. - Remove deprecated use of setuptools features. See `issue 30
  498. <https://github.com/zopefoundation/zope.interface/issues/30>`_.
  499. 4.7.1 (2019-11-11)
  500. ==================
  501. - Use Python 3 syntax in the documentation. See `issue 119
  502. <https://github.com/zopefoundation/zope.interface/issues/119>`_.
  503. 4.7.0 (2019-11-11)
  504. ==================
  505. - Drop support for Python 3.4.
  506. - Change ``queryTaggedValue``, ``getTaggedValue``,
  507. ``getTaggedValueTags`` in interfaces. They now include inherited
  508. values by following ``__bases__``. See `PR 144
  509. <https://github.com/zopefoundation/zope.interface/pull/144>`_.
  510. .. caution:: This may be a breaking change.
  511. - Add support for Python 3.8.
  512. 4.6.0 (2018-10-23)
  513. ==================
  514. - Add support for Python 3.7
  515. - Fix ``verifyObject`` for class objects with staticmethods on
  516. Python 3. See `issue 126
  517. <https://github.com/zopefoundation/zope.interface/issues/126>`_.
  518. 4.5.0 (2018-04-19)
  519. ==================
  520. - Drop support for 3.3, avoid accidental dependence breakage via setup.py.
  521. See `PR 110 <https://github.com/zopefoundation/zope.interface/pull/110>`_.
  522. - Allow registering and unregistering instance methods as listeners.
  523. See `issue 12 <https://github.com/zopefoundation/zope.interface/issues/12>`_
  524. and `PR 102 <https://github.com/zopefoundation/zope.interface/pull/102>`_.
  525. - Synchronize and simplify zope/__init__.py. See `issue 114
  526. <https://github.com/zopefoundation/zope.interface/issues/114>`_
  527. 4.4.3 (2017-09-22)
  528. ==================
  529. - Avoid exceptions when the ``__annotations__`` attribute is added to
  530. interface definitions with Python 3.x type hints. See `issue 98
  531. <https://github.com/zopefoundation/zope.interface/issues/98>`_.
  532. - Fix the possibility of a rare crash in the C extension when
  533. deallocating items. See `issue 100
  534. <https://github.com/zopefoundation/zope.interface/issues/100>`_.
  535. 4.4.2 (2017-06-14)
  536. ==================
  537. - Fix a regression storing
  538. ``zope.component.persistentregistry.PersistentRegistry`` instances.
  539. See `issue 85 <https://github.com/zopefoundation/zope.interface/issues/85>`_.
  540. - Fix a regression that could lead to the utility registration cache
  541. of ``Components`` getting out of sync. See `issue 93
  542. <https://github.com/zopefoundation/zope.interface/issues/93>`_.
  543. 4.4.1 (2017-05-13)
  544. ==================
  545. - Simplify the caching of utility-registration data. In addition to
  546. simplification, avoids spurious test failures when checking for
  547. leaks in tests with persistent registries. See `pull 84
  548. <https://github.com/zopefoundation/zope.interface/pull/84>`_.
  549. - Raise ``ValueError`` when non-text names are passed to adapter registry
  550. methods: prevents corruption of lookup caches.
  551. 4.4.0 (2017-04-21)
  552. ==================
  553. - Avoid a warning from the C compiler.
  554. (https://github.com/zopefoundation/zope.interface/issues/71)
  555. - Add support for Python 3.6.
  556. 4.3.3 (2016-12-13)
  557. ==================
  558. - Correct typos and ReST formatting errors in documentation.
  559. - Add API documentation for the adapter registry.
  560. - Ensure that the ``LICENSE.txt`` file is included in built wheels.
  561. - Fix C optimizations broken on Py3k. See the Python bug at:
  562. http://bugs.python.org/issue15657
  563. (https://github.com/zopefoundation/zope.interface/issues/60)
  564. 4.3.2 (2016-09-05)
  565. ==================
  566. - Fix equality testing of ``implementedBy`` objects and proxies.
  567. (https://github.com/zopefoundation/zope.interface/issues/55)
  568. 4.3.1 (2016-08-31)
  569. ==================
  570. - Support Components subclasses that are not hashable.
  571. (https://github.com/zopefoundation/zope.interface/issues/53)
  572. 4.3.0 (2016-08-31)
  573. ==================
  574. - Add the ability to sort the objects returned by ``implementedBy``.
  575. This is compatible with the way interface classes sort so they can
  576. be used together in ordered containers like BTrees.
  577. (https://github.com/zopefoundation/zope.interface/issues/42)
  578. - Make ``setuptools`` a hard dependency of ``setup.py``.
  579. (https://github.com/zopefoundation/zope.interface/issues/13)
  580. - Change a linear algorithm (O(n)) in ``Components.registerUtility`` and
  581. ``Components.unregisterUtility`` into a dictionary lookup (O(1)) for
  582. hashable components. This substantially improves the time taken to
  583. manipulate utilities in large registries at the cost of some
  584. additional memory usage. (https://github.com/zopefoundation/zope.interface/issues/46)
  585. 4.2.0 (2016-06-10)
  586. ==================
  587. - Add support for Python 3.5
  588. - Drop support for Python 2.6 and 3.2.
  589. 4.1.3 (2015-10-05)
  590. ==================
  591. - Fix installation without a C compiler on Python 3.5
  592. (https://github.com/zopefoundation/zope.interface/issues/24).
  593. 4.1.2 (2014-12-27)
  594. ==================
  595. - Add support for PyPy3.
  596. - Remove unittest assertions deprecated in Python3.x.
  597. - Add ``zope.interface.document.asReStructuredText``, which formats the
  598. generated text for an interface using ReST double-backtick markers.
  599. 4.1.1 (2014-03-19)
  600. ==================
  601. - Add support for Python 3.4.
  602. 4.1.0 (2014-02-05)
  603. ==================
  604. - Update ``boostrap.py`` to version 2.2.
  605. - Add ``@named(name)`` declaration, that specifies the component name, so it
  606. does not have to be passed in during registration.
  607. 4.0.5 (2013-02-28)
  608. ==================
  609. - Fix a bug where a decorated method caused false positive failures on
  610. ``verifyClass()``.
  611. 4.0.4 (2013-02-21)
  612. ==================
  613. - Fix a bug that was revealed by porting zope.traversing. During a loop, the
  614. loop body modified a weakref dict causing a ``RuntimeError`` error.
  615. 4.0.3 (2012-12-31)
  616. ==================
  617. - Fleshed out PyPI Trove classifiers.
  618. 4.0.2 (2012-11-21)
  619. ==================
  620. - Add support for Python 3.3.
  621. - Restored ability to install the package in the absence of ``setuptools``.
  622. - LP #1055223: Fix test which depended on dictionary order and failed randomly
  623. in Python 3.3.
  624. 4.0.1 (2012-05-22)
  625. ==================
  626. - Drop explicit ``DeprecationWarnings`` for "class advice" APIS (these
  627. APIs are still deprecated under Python 2.x, and still raise an exception
  628. under Python 3.x, but no longer cause a warning to be emitted under
  629. Python 2.x).
  630. 4.0.0 (2012-05-16)
  631. ==================
  632. - Automated build of Sphinx HTML docs and running doctest snippets via tox.
  633. - Deprecate the "class advice" APIs from ``zope.interface.declarations``:
  634. ``implements``, ``implementsOnly``, and ``classProvides``. In their place,
  635. prefer the equivalent class decorators: ``@implementer``,
  636. ``@implementer_only``, and ``@provider``. Code which uses the deprecated
  637. APIs will not work as expected under Py3k.
  638. - Remove use of '2to3' and associated fixers when installing under Py3k.
  639. The code is now in a "compatible subset" which supports Python 2.6, 2.7,
  640. and 3.2, including PyPy 1.8 (the version compatible with the 2.7 language
  641. spec).
  642. - Drop explicit support for Python 2.4 / 2.5 / 3.1.
  643. - Add support for PyPy.
  644. - Add support for continuous integration using ``tox`` and ``jenkins``.
  645. - Add 'setup.py dev' alias (runs ``setup.py develop`` plus installs
  646. ``nose`` and ``coverage``).
  647. - Add 'setup.py docs' alias (installs ``Sphinx`` and dependencies).
  648. - Replace all unittest coverage previously accomplished via doctests with
  649. unittests. The doctests have been moved into a ``docs`` section, managed
  650. as a Sphinx collection.
  651. - LP #910987: Ensure that the semantics of the ``lookup`` method of
  652. ``zope.interface.adapter.LookupBase`` are the same in both the C and
  653. Python implementations.
  654. - LP #900906: Avoid exceptions due to tne new ``__qualname__`` attribute
  655. added in Python 3.3 (see PEP 3155 for rationale). Thanks to Antoine
  656. Pitrou for the patch.
  657. 3.8.0 (2011-09-22)
  658. ==================
  659. - New module ``zope.interface.registry``. This is code moved from
  660. ``zope.component.registry`` which implements a basic nonperistent component
  661. registry as ``zope.interface.registry.Components``. This class was moved
  662. from ``zope.component`` to make porting systems (such as Pyramid) that rely
  663. only on a basic component registry to Python 3 possible without needing to
  664. port the entirety of the ``zope.component`` package. Backwards
  665. compatibility import shims have been left behind in ``zope.component``, so
  666. this change will not break any existing code.
  667. - New ``tests_require`` dependency: ``zope.event`` to test events sent by
  668. Components implementation. The ``zope.interface`` package does not have a
  669. hard dependency on ``zope.event``, but if ``zope.event`` is importable, it
  670. will send component registration events when methods of an instance of
  671. ``zope.interface.registry.Components`` are called.
  672. - New interfaces added to support ``zope.interface.registry.Components``
  673. addition: ``ComponentLookupError``, ``Invalid``, ``IObjectEvent``,
  674. ``ObjectEvent``, ``IComponentLookup``, ``IRegistration``,
  675. ``IUtilityRegistration``, ``IAdapterRegistration``,
  676. ``ISubscriptionAdapterRegistration``, ``IHandlerRegistration``,
  677. ``IRegistrationEvent``, ``RegistrationEvent``, ``IRegistered``,
  678. ``Registered``, ``IUnregistered``, ``Unregistered``,
  679. ``IComponentRegistry``, and ``IComponents``.
  680. - No longer Python 2.4 compatible (tested under 2.5, 2.6, 2.7, and 3.2).
  681. 3.7.0 (2011-08-13)
  682. ==================
  683. - Move changes from 3.6.2 - 3.6.5 to a new 3.7.x release line.
  684. 3.6.7 (2011-08-20)
  685. ==================
  686. - Fix sporadic failures on x86-64 platforms in tests of rich comparisons
  687. of interfaces.
  688. 3.6.6 (2011-08-13)
  689. ==================
  690. - LP #570942: Now correctly compare interfaces from different modules but
  691. with the same names.
  692. N.B.: This is a less intrusive / destabilizing fix than the one applied in
  693. 3.6.3: we only fix the underlying cmp-alike function, rather than adding
  694. the other "rich comparison" functions.
  695. - Revert to software as released with 3.6.1 for "stable" 3.6 release branch.
  696. 3.6.5 (2011-08-11)
  697. ==================
  698. - LP #811792: work around buggy behavior in some subclasses of
  699. ``zope.interface.interface.InterfaceClass``, which invoke ``__hash__``
  700. before initializing ``__module__`` and ``__name__``. The workaround
  701. returns a fixed constant hash in such cases, and issues a ``UserWarning``.
  702. - LP #804832: Under PyPy, ``zope.interface`` should not build its C
  703. extension. Also, prevent attempting to build it under Jython.
  704. - Add a tox.ini for easier xplatform testing.
  705. - Fix testing deprecation warnings issued when tested under Py3K.
  706. 3.6.4 (2011-07-04)
  707. ==================
  708. - LP 804951: InterfaceClass instances were unhashable under Python 3.x.
  709. 3.6.3 (2011-05-26)
  710. ==================
  711. - LP #570942: Now correctly compare interfaces from different modules but
  712. with the same names.
  713. 3.6.2 (2011-05-17)
  714. ==================
  715. - Moved detailed documentation out-of-line from PyPI page, linking instead to
  716. http://docs.zope.org/zope.interface .
  717. - Fixes for small issues when running tests under Python 3.2 using
  718. ``zope.testrunner``.
  719. - LP # 675064: Specify return value type for C optimizations module init
  720. under Python 3: undeclared value caused warnings, and segfaults on some
  721. 64 bit architectures.
  722. - setup.py now raises RuntimeError if you don't have Distutils installed when
  723. running under Python 3.
  724. 3.6.1 (2010-05-03)
  725. ==================
  726. - A non-ASCII character in the changelog made 3.6.0 uninstallable on
  727. Python 3 systems with another default encoding than UTF-8.
  728. - Fix compiler warnings under GCC 4.3.3.
  729. 3.6.0 (2010-04-29)
  730. ==================
  731. - LP #185974: Clear the cache used by ``Specificaton.get`` inside
  732. ``Specification.changed``. Thanks to Jacob Holm for the patch.
  733. - Add support for Python 3.1. Contributors:
  734. Lennart Regebro
  735. Martin v Loewis
  736. Thomas Lotze
  737. Wolfgang Schnerring
  738. The 3.1 support is completely backwards compatible. However, the implements
  739. syntax used under Python 2.X does not work under 3.X, since it depends on
  740. how metaclasses are implemented and this has changed. Instead it now supports
  741. a decorator syntax (also under Python 2.X)::
  742. class Foo:
  743. implements(IFoo)
  744. ...
  745. can now also be written::
  746. @implementer(IFoo):
  747. class Foo:
  748. ...
  749. There are 2to3 fixers available to do this change automatically in the
  750. zope.fixers package.
  751. - Python 2.3 is no longer supported.
  752. 3.5.4 (2009-12-23)
  753. ==================
  754. - Use the standard Python doctest module instead of zope.testing.doctest, which
  755. has been deprecated.
  756. 3.5.3 (2009-12-08)
  757. ==================
  758. - Fix an edge case: make providedBy() work when a class has '__provides__' in
  759. its __slots__ (see http://thread.gmane.org/gmane.comp.web.zope.devel/22490)
  760. 3.5.2 (2009-07-01)
  761. ==================
  762. - BaseAdapterRegistry.unregister, unsubscribe: Remove empty portions of
  763. the data structures when something is removed. This avoids leaving
  764. references to global objects (interfaces) that may be slated for
  765. removal from the calling application.
  766. 3.5.1 (2009-03-18)
  767. ==================
  768. - verifyObject: use getattr instead of hasattr to test for object attributes
  769. in order to let exceptions other than AttributeError raised by properties
  770. propagate to the caller
  771. - Add Sphinx-based documentation building to the package buildout
  772. configuration. Use the ``bin/docs`` command after buildout.
  773. - Improve package description a bit. Unify changelog entries formatting.
  774. - Change package's mailing list address to zope-dev at zope.org as
  775. zope3-dev at zope.org is now retired.
  776. 3.5.0 (2008-10-26)
  777. ==================
  778. - Fix declaration of _zope_interface_coptimizations, it's not a top level
  779. package.
  780. - Add a DocTestSuite for odd.py module, so their tests are run.
  781. - Allow to bootstrap on Jython.
  782. - Fix https://bugs.launchpad.net/zope3/3.3/+bug/98388: ISpecification
  783. was missing a declaration for __iro__.
  784. - Add optional code optimizations support, which allows the building
  785. of C code optimizations to fail (Jython).
  786. - Replace `_flatten` with a non-recursive implementation, effectively making
  787. it 3x faster.
  788. 3.4.1 (2007-10-02)
  789. ==================
  790. - Fix a setup bug that prevented installation from source on systems
  791. without setuptools.
  792. 3.4.0 (2007-07-19)
  793. ==================
  794. - Final release for 3.4.0.
  795. 3.4.0b3 (2007-05-22)
  796. ====================
  797. - When checking whether an object is already registered, use identity
  798. comparison, to allow adding registering with picky custom comparison methods.
  799. 3.3.0.1 (2007-01-03)
  800. ====================
  801. - Made a reference to OverflowWarning, which disappeared in Python
  802. 2.5, conditional.
  803. 3.3.0 (2007/01/03)
  804. ==================
  805. New Features
  806. ------------
  807. - Refactor the adapter-lookup algorithim to make it much simpler and faster.
  808. Also, implement more of the adapter-lookup logic in C, making
  809. debugging of application code easier, since there is less
  810. infrastructre code to step through.
  811. - Treat objects without interface declarations as if they
  812. declared that they provide ``zope.interface.Interface``.
  813. - Add a number of richer new adapter-registration interfaces
  814. that provide greater control and introspection.
  815. - Add a new interface decorator to zope.interface that allows the
  816. setting of tagged values on an interface at definition time (see
  817. zope.interface.taggedValue).
  818. Bug Fixes
  819. ---------
  820. - A bug in multi-adapter lookup sometimes caused incorrect adapters to
  821. be returned.
  822. 3.2.0.2 (2006-04-15)
  823. ====================
  824. - Fix packaging bug: 'package_dir' must be a *relative* path.
  825. 3.2.0.1 (2006-04-14)
  826. ====================
  827. - Packaging change: suppress inclusion of 'setup.cfg' in 'sdist' builds.
  828. 3.2.0 (2006-01-05)
  829. ==================
  830. - Corresponds to the version of the zope.interface package shipped as part of
  831. the Zope 3.2.0 release.
  832. 3.1.0 (2005-10-03)
  833. ==================
  834. - Corresponds to the version of the zope.interface package shipped as part of
  835. the Zope 3.1.0 release.
  836. - Made attribute resolution order consistent with component lookup order,
  837. i.e. new-style class MRO semantics.
  838. - Deprecate 'isImplementedBy' and 'isImplementedByInstancesOf' APIs in
  839. favor of 'implementedBy' and 'providedBy'.
  840. 3.0.1 (2005-07-27)
  841. ==================
  842. - Corresponds to the version of the zope.interface package shipped as part of
  843. the Zope X3.0.1 release.
  844. - Fix a bug reported by James Knight, which caused adapter registries
  845. to fail occasionally to reflect declaration changes.
  846. 3.0.0 (2004-11-07)
  847. ==================
  848. - Corresponds to the version of the zope.interface package shipped as part of
  849. the Zope X3.0.0 release.