[ python-Feature Requests-935915 ] os.nullfilename

SourceForge.net noreply at sourceforge.net
Sun May 9 12:08:15 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: None
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: 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