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

Migrate to pathlib.Path and Support __fspath__ in PySide

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.1.0
    • 6.1.0
    • PySide, Shiboken
    • None
    • All

    Description

      Python has begun to use pathlib.Path instead of os.path since Python 3.4 .
      Since we no longer need to go back to Python 2.7 in PySide6, I propose to switch PySide6 also to use the pathlib.

      After changing very much code, it became obvious that we always need to revert the effect of Path when a PySide function deals with it. That was enough motivation to work on supporting the __fspath__ attribute that will make it easy to implement Path acceptance everywhere.

      Attachments

        Issue Links

          For Gerrit Dashboard: PYSIDE-1499
          # Subject Branch Project Status CR V

          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 is 1 open Gerrit change