Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2140

PySide2 5.15.2 introduces regression with respect to bound signal equality and identity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.15.10
    • PySide
    • None
    • All

      The following code:

      from PySide2 import QtWidgets
      
      app = QtWidgets.QApplication([])
      button = QtWidgets.QPushButton()
      s1 = button.clicked
      s2 = button.clicked
      
      print(s1 == s2)
      print(s1 is s2)

      prints

      True
      True

      before version 5.15.2.

      However the same code prints

      False
      False

      since 5.15.2.

      The regression makes it impossible to implement certain useful code patterns.

      It would be great if this regression can be fixed.

        1. pyside2140.py
          0.7 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            crmaurei Cristian Maureira-Fredes
            fancidev_ RR YY
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes