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.
Release files for gocept.patch-keyreferences 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gocept.patch_keyreferences-0.1.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gocept.patch_keyreferences-0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 19.3 kB
Release files / gocept.patch_keyreferences-0.1.tar.gz
| Download URL | gocept.patch_keyreferences-0.1.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
634c5869567945d7c25905e119a3fa3d8e40deb3e01f466af4b2e404348bfb48
|
|
BLAKE2b-256 checksum How to use checksums |
07a51df0feb0c8a86013a4eb5909f04074517756be9fd4e8f84c821e4a376c0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / gocept.patch_keyreferences-0.1-py2.py3-none-any.whl
| Download URL | gocept.patch_keyreferences-0.1-py2.py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
fc82060f107cf5db8c424b173276ea267b016fc0337b30c2981ea1c8eac87950
|
|
BLAKE2b-256 checksum How to use checksums |
1d8406c11261248645fb36d82021f40dd177becb1b1a9151a6395716f7de38c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|