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.
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:
+ unnamed messages: + msg59953 |
| 2008年01月15日 01:44:21 | gvanrossum | set | status: open -> closed |
| 2008年01月15日 01:44:15 | gvanrossum | set | resolution: rejected messages: + msg59952 |
| 2008年01月15日 01:25:03 | benjamin.peterson | set | messages: + msg59950 |
| 2008年01月15日 01:16:17 | gvanrossum | set | nosy:
+ gvanrossum messages: + msg59948 |
| 2008年01月15日 01:14:07 | brett.cannon | set | messages: + msg59947 |
| 2008年01月15日 01:12:31 | christian.heimes | set | priority: low nosy: + christian.heimes, brett.cannon type: enhancement messages: + msg59946 versions: - Python 2.6 |
| 2008年01月15日 01:02:29 | benjamin.peterson | create | |