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

    • Type: Suggestion
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.1.0
    • Fix Version/s: None
    • Component/s: PySide, Shiboken
    • Labels:
      None

      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

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

            Activity

              People

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

                Dates

                Created:
                Updated: