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
- Closed
- resulted in
-
PYSIDE-1736 QQmlApplicationEngine::load() no longer works with string argument
- Closed
-
PYSIDE-1669 REG->6.2.0: QIcon.addPixmap(str) no longer works
- Closed
For Gerrit Dashboard: PYSIDE-1499 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
376443,6 | Inactive: Add explicit constructors for PyPathlike modifications (not really) | dev | pyside/pyside-setup | Status: NEW | 0 | 0 |