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

Migrate to pathlib.Path and Support __fspath__ in PySide

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There is 1 open Gerrit change