classification
Title: Remove macpath module
Type: Stage: resolved
Components: Library (Lib), macOS Versions: Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ned.deily, ronaldoussoren, vstinner
Priority: normal Keywords: patch

Created on 2018-12-12 15:22 by vstinner, last changed 2018-12-14 12:39 by vstinner. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 11129 merged vstinner, 2018-12-12 15:26
Messages (5)
msg331699 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-12-12 15:22
The module 'macpath' has been deprecated in Python 3.7 by bpo-9850 and scheduled for removal in Python 3.8. Attached PR removes the module.
msg331700 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-12-12 15:28
According to the PEP 11, MacOS 9 support has been dropped in Python 2.4 (released in 2004: 14 years ago!). So I think that it's now ok to remove the macpath module, especially because it's deprecated since Python 3.7.
msg331702 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2018-12-12 16:01
I'm in favour of removing macpath.

I was against removing the module in the past because parts of the macOS API still used (on probably still use) classic MacOS style paths.  Most if not all APIs are by this time deprecated, which makes it less and less like that anyone will use macpath going forward.
msg331706 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-12-12 16:31
> I was against removing the module in the past because parts of the macOS API still used (on probably still use) classic MacOS style paths.  Most if not all APIs are by this time deprecated, which makes it less and less like that anyone will use macpath going forward.

bpo-9850 has a scary title: "obsolete macpath module dangerously broken and should be removed". Extract:

   "Even if one did have a need to use the obsolete old-style paths, the macpath module is currently practically unusable for anything other than simple character manipulations of the path.  Nearly all of the functions that actually call OS routines are broken in one or more ways."
msg331822 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-12-14 12:37
New changeset d7538dd5e3e04a8db22e1470cb2ed696bf3be160 by Victor Stinner in branch 'master':
bpo-35471: Remove the macpath module (GH-11129)
https://github.com/python/cpython/commit/d7538dd5e3e04a8db22e1470cb2ed696bf3be160
History
Date User Action Args
2018-12-14 12:39:54vstinnersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-12-14 12:37:28vstinnersetmessages: + msg331822
2018-12-12 16:31:24vstinnersetmessages: + msg331706
2018-12-12 16:01:14ronaldoussorensetmessages: + msg331702
2018-12-12 16:00:08serhiy.storchakasetnosy: + ronaldoussoren, ned.deily
components: + macOS
2018-12-12 15:28:10vstinnersetmessages: + msg331700
2018-12-12 15:26:53vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request10360
2018-12-12 15:22:57vstinnercreate