[Python-bugs-list] [ python-Bugs-836769 ] file.readfile(filename, mode)

SourceForge.net noreply at sourceforge.net
Wed Nov 5 16:11:28 EST 2003


Bugs item #836769, was opened at 2003-11-05 12:40
Message generated for change (Settings changed) made by mssf
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=836769&group_id=5470

Category: Python Library
Group: Feature Request
>Status: Deleted
Resolution: None
Priority: 5
Submitted By: mssf (mssf)
Assigned to: Nobody/Anonymous (nobody)
Summary: file.readfile(filename, mode)

Initial Comment:
The idea is to provide a shortcut for:

f = file(filename, mode)
d  = f.read()
f.close()

by adding a 'static' function to the builtin file class

The above code would replaced with something like:

d = file.readfile(filename, mode)

mode could either accept the same values as the file
constructor, i.e. 'r', 'rt', 'rb', or simply 'b' or 't'


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=836769&group_id=5470



More information about the Python-bugs-list mailing list