Created on 2018-12-12 15:22 by vstinner, last changed 2022-04-11 14:59 by admin. 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) * | 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) * | 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) * | 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) * | 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) * | 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 |
| 2022-04-11 14:59:09 | admin | set | github: 79652 |
| 2018-12-14 12:39:54 | vstinner | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2018-12-14 12:37:28 | vstinner | set | messages: + msg331822 |
| 2018-12-12 16:31:24 | vstinner | set | messages: + msg331706 |
| 2018-12-12 16:01:14 | ronaldoussoren | set | messages: + msg331702 |
| 2018-12-12 16:00:08 | serhiy.storchaka | set | nosy:
+ ronaldoussoren, ned.deily components: + macOS |
| 2018-12-12 15:28:10 | vstinner | set | messages: + msg331700 |
| 2018-12-12 15:26:53 | vstinner | set | keywords:
+ patch stage: patch review pull_requests: + pull_request10360 |
| 2018-12-12 15:22:57 | vstinner | create | |