Issue 1828: Renaming platform path modules (original) (raw)

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:29 admin set github: 46153
2008-01-15 04:08:33 gvanrossum set files: - unnamed
2008-01-15 01:46:00 benjamin.peterson set files: + unnamedmessages: +
2008-01-15 01:44:21 gvanrossum set status: open -> closed
2008-01-15 01:44:15 gvanrossum set resolution: rejectedmessages: +
2008-01-15 01:25:03 benjamin.peterson set messages: +
2008-01-15 01:16:17 gvanrossum set nosy: + gvanrossummessages: +
2008-01-15 01:14:07 brett.cannon set messages: +
2008-01-15 01:12:31 christian.heimes set priority: lownosy: + christian.heimes, brett.cannontype: enhancementmessages: + versions: - Python 2.6
2008-01-15 01:02:29 benjamin.peterson create