[ python-Feature Requests-935915 ] os.nullfilename
SourceForge.net
noreply at sourceforge.net
Tue Jun 8 04:30:36 EDT 2004
Feature Requests item #935915, was opened at 2004-04-15 22:44
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=935915&group_id=5470
Category: Python Library
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: John Belmonte (jbelmonte)
Assigned to: Martin v. Löwis (loewis)
Summary: os.nullfilename
Initial Comment:
Just as the os library provides os.sep, etc., for the
current OS, it should provide the name of the null file
(e.g., "/dev/null" or "nul:"), so that there is a
portable way to open a null file.
Use of an object such as
class nullFile:
def write(self, data):
pass
is not sufficient because it does not provide a full
file object interface (no access to file descriptor, etc.).
See discussion at
<http://mail.python.org/pipermail/python-list/2004-March/213590.html>.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2004-06-08 10:30
Message:
Logged In: YES
user_id=21627
Thanks for the patch. Committed as
libos.tex 1.137
macpath.py 1.48
ntpath.py 1.59
os.py 1.77
os2emxpath.py 1.12
posixpath.py 1.66
test_os.py 1.24
NEWS 1.996
----------------------------------------------------------------------
Comment By: John Belmonte (jbelmonte)
Date: 2004-06-06 23:36
Message:
Logged In: YES
user_id=282299
Please mark this as a patch and consider for commit.
----------------------------------------------------------------------
Comment By: John Belmonte (jbelmonte)
Date: 2004-05-30 01:36
Message:
Logged In: YES
user_id=282299
Attaching patch against Python HEAD, including docs and test.
----------------------------------------------------------------------
Comment By: John Belmonte (jbelmonte)
Date: 2004-05-21 16:46
Message:
Logged In: YES
user_id=282299
I do intend to make a patch, but it may be some time before I get to
it. Please give me a few weeks. If someone else would like to step
in, that is fine, just let me know before you start the work.
----------------------------------------------------------------------
Comment By: Raymond Hettinger (rhettinger)
Date: 2004-05-21 08:00
Message:
Logged In: YES
user_id=80475
Consider mentioning this on comp.lang.python. Perhaps
someone will volunteer to write a patch.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2004-05-09 18:08
Message:
Logged In: YES
user_id=21627
Would you like to work on a patch?
----------------------------------------------------------------------
Comment By: David Albert Torpey (dtorp)
Date: 2004-05-09 03:54
Message:
Logged In: YES
user_id=681258
I like this idea. It is more portable.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2004-04-15 22:52
Message:
Logged In: YES
user_id=21627
Move to feature requests tracker
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=935915&group_id=5470
More information about the Python-bugs-list
mailing list