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

Details

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

    Description

      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.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes