473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Python Feature Request: (?) Group all file-directory-related stdlib functions in one place

Please check for sanity and approve for posting at python-dev.

Currently file-directory-related functionality in the Python standard
library is scattered among various modules such as shutil, os,
dircache etc. So I request that the functions be gathered and
consolidated at one place. Some may need renaming to avoid conflicts
or for clarification.

Apr 14 '07 #1
4 1402
Currently file-directory-related functionality in the Python standard
library is scattered among various modules such as shutil, os,
dircache etc. So I request that the functions be gathered and
consolidated at one place. Some may need renaming to avoid conflicts
or for clarification.
I think similar consolidations of the STD lib are positive, they are
scheduled for Python V.3.0-3.1:
http://www.python.org/dev/peps/pep-3001/
http://www.python.org/dev/peps/pep-3108/
If you submit this to python-dev I suggest you to work as much as
possible: finding a good organization, writing justifications all for
all the changes etc. You can also remember that lot of people are
using some nonstandard modules, like the path one, that may be fit for
the STD library, once cleaned up a bit, so you have to take into
accout that too.

Bye,
bearophile

Apr 14 '07 #2
Currently file-directory-related functionality in the Python standard
library is scattered among various modules such as shutil, os,
dircache etc. So I request that the functions be gathered and
consolidated at one place. Some may need renaming to avoid conflicts
or for clarification.
Please see PEP 355.

Regards,
Martin
Apr 14 '07 #3
On Apr 14, 6:30 am, samj...@gmail.com wrote:
Please check for sanity and approve for posting at python-dev.

Currently file-directory-related functionality in the Python standard
library is scattered among various modules such as shutil, os,
dircache etc. So I request that the functions be gathered and
consolidated at one place. Some may need renaming to avoid conflicts
or for clarification.
checkout the py3k svn branch and submit a patch [extending or
conforming to pep355] to python-dev.

Apr 14 '07 #4
In article <46***********************@news.freenet.de>,
"Martin v. Löwis" <ma****@v.loewis.dewrote:
Currently file-directory-related functionality in the Python standard
library is scattered among various modules such as shutil, os,
dircache etc. So I request that the functions be gathered and
consolidated at one place. Some may need renaming to avoid conflicts
or for clarification.

Please see PEP 355.
Thanks for bringing this to my attention; I was not aware of this PEP.
The organization of the stdlib's file- and path-related functions gives
me headaches so I'd like to see it change. But note that GvR has
pronounced that PEP 355 is dead:

http://mail.python.org/pipermail/pyt...er/069087.html

--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
Apr 15 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
34
by: Erik Johnson | last post by:
This is somewhat a NEWBIE question... My company maintains a small RDBS driven website. We currently generate HTML using PHP. I've hacked a bit in Python, and generally think it is a rather...
68
by: Lad | last post by:
Is anyone capable of providing Python advantages over PHP if there are any? Cheers, L.
24
by: Christopher J. Bottaro | last post by:
This post is just the culmination of my thoughts and discussions with my coworkers on Python. If you are not interested, please skip over it. At my work, we are developing a product from...
158
by: Giovanni Bajo | last post by:
Hello, I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the "PSF infrastracture committee", after weeks of evaluation, recommends...
1
by: Petr Prikryl | last post by:
Do you think that the following could became PEP (pre PEP). Please, read it, comment it, reformulate it,... Abstract Introduction of the mechanism for language extensions via modules...
852
by: Mark Tarver | last post by:
How do you compare Python to Lisp? What specific advantages do you think that one has over the other? Note I'm not a Python person and I have no axes to grind here. This is just a question for...
113
by: John Nagle | last post by:
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside...
25
by: samjnaa | last post by:
Please check for sanity and approve for posting at python-dev. In Visual Basic there is the keyword "with" which allows an object- name to be declared as governing the following statements. For...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 357 open ( +8) / 3745 closed ( +8) / 4102 total (+16) Bugs : 958 open (+19) / 6657 closed ( +9) / 7615 total (+28) RFE : 251 open...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.