Details
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
- relates to
-
PYSIDE-1110 Embrace Python types and modules in PySide
-
- In Progress
-
Gerrit Reviews
For Gerrit Dashboard: PYSIDE-1499 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
334707,14 | WIP: build support for std::filesystem::path with pathlib.Path | dev | pyside/pyside-setup | Status: NEW | -2 | 0 |
333352,8 | Switch from os.path to pathlib.Path, all source changes but tests | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
334847,2 | PySide6/__init__.py.in: Fix type error | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
335606,3 | sbkconverter: fix a potential refcounting crash | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
335607,3 | cppgenerator: simplify code further using AutoDecref | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
335750,3 | sbkconverter: fix a potential refcounting crash | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |
342002,6 | Port tests to pathlib | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
342087,1 | Port tests to pathlib | 6.0 | pyside/pyside-setup | Status: ABANDONED | -1 | 0 |