portable /dev/null again

John Belmonte john at neggie.net
Wed Mar 24 20:58:30 CET 2004


Jeff Epler wrote:
>     nullfile = file(nullfilename, "r+b")

I forgot that /dev/null can be used as input too.  So maybe there should 
be os.nullin and os.nullout, or again, only provide os.nullfilename and 
let the user manage the actual file object.

-John


-- 
http:// if  ile.org/




More information about the Python-list mailing list