Fix for the comparison of security wrapped keyreferences.
Project description
gocept.patch_keyreferences
This package fixes the comparison between keyreferences of zope.keyreference in Python 3.
Reasoning
In Python 2 zope.keyreference used to compare items via the __cmp__ method. This was facilitated by the C-implementation of the Zope security packages, as it allowed the comparison without un-wrapping the security proxy explicitly. Python 3 used rich comparison and this behaviour stopped working. For further information see the following PR.
This package applies a monkey patch to make the fix usable although it is the wrong place to fix it in general.
Usage
To use this package include it in the zcml of you application:
<configure xmlns="http://namespaces.zope.org/zope"> <include package="gocept.patch_keyreferences" /> </configure>
Changes
0.1 (2020-08-07)
Initial release.
Project details
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
Built Distribution
File details
Details for the file gocept.patch_keyreferences-0.1.tar.gz
.
File metadata
- Download URL: gocept.patch_keyreferences-0.1.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 634c5869567945d7c25905e119a3fa3d8e40deb3e01f466af4b2e404348bfb48 |
|
MD5 | c0d3ad6a53e57a7fa4a69367c78d8ffe |
|
BLAKE2b-256 | 07a51df0feb0c8a86013a4eb5909f04074517756be9fd4e8f84c821e4a376c0a |
File details
Details for the file gocept.patch_keyreferences-0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: gocept.patch_keyreferences-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc82060f107cf5db8c424b173276ea267b016fc0337b30c2981ea1c8eac87950 |
|
MD5 | 44ddad12bdfec94d8ed29205096d8fc1 |
|
BLAKE2b-256 | 1d8406c11261248645fb36d82021f40dd177becb1b1a9151a6395716f7de38c1 |