This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Renaming platform path modules
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, brett.cannon, christian.heimes, gvanrossum
Priority: low Keywords:

Created on 2008-01-15 01:02 by benjamin.peterson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (7)
msg59942 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-01-15 01:02
Currently, all the platform-specific path modules (ntpath, macpath, etc)
have normal module names. Since they are implementation details, they
should have a "_" prepended to their names. I doubt this would break
much code: I've never written witnessed any code outside of the os
module that uses the modules.
msg59946 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-01-15 01:12
Brett, it sounds like a good idea for the 3.0 stdlib reorg.
msg59947 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2008-01-15 01:14
On Jan 14, 2008 5:12 PM, Christian Heimes <report@bugs.python.org> wrote:
>
> Christian Heimes added the comment:
>
> Brett, it sounds like a good idea for the 3.0 stdlib reorg.
>

Yep, it does.
msg59948 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2008-01-15 01:16
> Since they are implementation details, they
> should have a "_" prepended to their names.

No, they are not, and they should not.

There are legitimate use cases for importing these directly.  E.g. I
could be on a Windows box but have a desire to manipulate posix paths.
msg59950 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-01-15 01:25
Well, yes but I think that it's rare enough that in the name of keeping
the stdlib clean, it's reasonable to say:
import _posixpath and posixpath
This also occurs when somone wants to modify __builtin__.
msg59952 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2008-01-15 01:44
And guess what, in 3.0 __builtin__ is renamed to builtin.
msg59953 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-01-15 01:46
On Jan 14, 2008 7:44 PM, Guido van Rossum <report@bugs.python.org> wrote:

>
> Guido van Rossum added the comment:
>
> And guess what, in 3.0 __builtin__ is renamed to builtin.

 point taken

>
>
> ----------
> resolution:  -> rejected
>
> __________________________________
> Tracker <report@bugs.python.org>
> <http://bugs.python.org/issue1828>
> __________________________________
>
History
Date User Action Args
2022-04-11 14:56:29adminsetgithub: 46153
2008-01-15 04:08:33gvanrossumsetfiles: - unnamed
2008-01-15 01:46:00benjamin.petersonsetfiles: + unnamed
messages: + msg59953
2008-01-15 01:44:21gvanrossumsetstatus: open -> closed
2008-01-15 01:44:15gvanrossumsetresolution: rejected
messages: + msg59952
2008-01-15 01:25:03benjamin.petersonsetmessages: + msg59950
2008-01-15 01:16:17gvanrossumsetnosy: + gvanrossum
messages: + msg59948
2008-01-15 01:14:07brett.cannonsetmessages: + msg59947
2008-01-15 01:12:31christian.heimessetpriority: low
nosy: + christian.heimes, brett.cannon
type: enhancement
messages: + msg59946
versions: - Python 2.6
2008-01-15 01:02:29benjamin.petersoncreate