diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-09-10 12:42:25 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-09-10 12:45:26 +0200 |
commit | d4bc1ade3a8aae42915c1c71f4bac10414644ae0 (patch) | |
tree | 94496a73808d58db1505a4034a4eedc0c8a3930d /sources/pyside2/doc | |
parent | 8f7de769636f36bcf371c472480adab75a32e0bf (diff) | |
parent | 074e52bccfba94c97cc132060e7087f830756b26 (diff) |
Merge remote-tracking branch 'origin/5.15' into dev
Change-Id: I8a627fd459c3f9601d078a00d3d77c8b3fe04304
Diffstat (limited to 'sources/pyside2/doc')
-rw-r--r-- | sources/pyside2/doc/considerations.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sources/pyside2/doc/considerations.rst b/sources/pyside2/doc/considerations.rst index f05d929b5..b5eae7d86 100644 --- a/sources/pyside2/doc/considerations.rst +++ b/sources/pyside2/doc/considerations.rst @@ -133,3 +133,17 @@ Abandoned Alternative We also tried an alternative implementation with a ``qApp()`` function that was more *pythonic* and problem free, but many people liked the ``qApp`` macro better for its brevity, so here it is. + + +Rich Comparison +~~~~~~~~~~~~~~~ + +There was a long-standing bug in the ``tp_richcompare`` implementation of PySide classes. + +* When a class did not implement it, the default implementation of ``object`` is used. + This implements ``==`` and ``!=`` like the ``is`` operator. + +* When a class implements only a single function like ``<``, then the default implementation + was disabled, and expressions like ``obj in sequence`` failed with ``NotImplemented``. + +This oversight was fixed in version 5.15.1 . |