[ python-Feature Requests-935915 ] os.nullfilename

SourceForge.net noreply at sourceforge.net
Sat May 29 19:36:38 EDT 2004


Feature Requests item #935915, was opened at 2004-04-16 05:44
Message generated for change (Comment added) made by jbelmonte
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=935915&group_id=5470

>Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: John Belmonte (jbelmonte)
Assigned to: Nobody/Anonymous (nobody)
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: John Belmonte (jbelmonte)
Date: 2004-05-30 08: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 23: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 15: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-10 01: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 10: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-16 05: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