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

Handle warnings correctly in all cases

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.15.3, 6.0.4
    • Shiboken
    • None

    Description

      It has been a long-standing omission to ensure correct error handling for warnings.
      A widely unknown feature of Python is the ability to turn any warning into
      a real exception. This can be triggered by passing the -Werror flag on Python startup
      or the environment variable PYTHONWARNINGS=error.

      The needed action is

      • Make the current Shiboken::warning function correctly ignore errors,
      • Write a better function that handles warnings in a conforming way,
      • Rewrite places with warning usage to be aware of exceptions.

      Attachments

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

        Activity

          People

            ctismer Christian Tismer
            ctismer Christian Tismer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes