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

None != None; pyside2 internally uses wrong "None".

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 5.14.1
    • 5.11.0
    • PySide
    • None
    • 8c5b08a74650e5dea7303d6f232c4df0f706cb35 (pyside/pyside-setup/dev)

      PySide2 seems to create its own object for "None" internally instead of using the none created by the cpython runtime.

      In [1]: import PySide2.QtWidgets                                                                                     
      In [2]: PySide2.__version__                                                                                          
      Out[2]: '5.6.0~a1'
      In [3]: PySide2.QtWidgets.qApp                                                                                       
      Out[3]: None
      In [4]: id(PySide2.QtWidgets.qApp)                                                                                   
      Out[4]: 140515700103744                                                                                                         
      In [5]: id(None)                                                                                                     
      Out[5]: 94436718787216
      
       

      I tested this also with pyside2 5.13.1

        1. pyside1158_diag.diff
          3 kB
        2. pyside1158.py
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ctismer Christian Tismer
            thisch thomas hisch
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes