[Python-3000] iostack and Oh Oh
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Dec 3 01:03:06 CET 2006
Bill Janssen wrote:
> Where would the standalone function live? How would it be associated
> with whatever open() returns?
Three possibilities come to mind:
a) builtin
b) imported from a module
c) static function of the file type
Since there will probably be a number of such functions
(readlines, readbytes, readblocks, etc.) I'd probably
vote for b) and have a module such as 'files' or
'filetools' to hold generically-implemented file-related
functions.
--
Greg
More information about the Python-3000
mailing list