summaryrefslogtreecommitdiff
path: root/CHANGES.rst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2022-03-10 10:49:08 +0000
committerColin Watson <cjwatson@debian.org>2022-03-10 10:49:08 +0000
commit779c5db040759de3fb51e80f90f9805d1e093e1c (patch)
treec980498248b0d9dc7dc0c59fe0412355f921e070 /CHANGES.rst
parentfca22bb84b4eaf11875a7a7207fb0c1d9be36d39 (diff)
downloadzope-security-779c5db040759de3fb51e80f90f9805d1e093e1c.tar.gz
Fix default checker for method-wrapper on Python 3
The default checker for `method-wrapper` objects such as `().__repr__` and `{}.__repr__` was previously set by setting the default checker `type(().__getslice__)`, which only worked on Python 2. Use a different exemplar for this type which works on both Python 2 and 3. Fixes #75.
Diffstat (limited to 'CHANGES.rst')
-rw-r--r--CHANGES.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 72b74fe..5a7e37a 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -5,7 +5,10 @@
5.3 (unreleased)
================
-- Nothing changed yet.
+- Allow calling bound methods of some built-in objects such as ``().__repr__``
+ and ``{}.__repr__`` by default. This worked on Python 2, but raised
+ ``ForbiddenAttribute`` on Python 3. See `issue 75
+ <https://github.com/zopefoundation/zope.security/issues/75>`_.
5.2 (2022-03-10)