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

class members invalid behaviour on python 3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 1.1.0
    • Shiboken
    • None
    • Linux and Windows

    Description

      Take the following code (the Test class is wrapped by shiboken generator):

      >>>
      from Test import TestType

      class MyObject(TestType):
      Instance = "Default"

      MyObject.Instance = "First"
      print(MyObject.Instance)
      MyObject.Instance = "Second"
      print(MyObject.Instance)
      <<<

      Valid output on python 2:
      First
      Second

      Invalid output on python 3:
      First
      First

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            rlacko Roman Lacko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes