[OT] - (Was: Re: Proposed extension to file constructor)

Gerrit Holl gerrit at nl.linux.org
Wed Jun 4 11:05:57 EDT 2003


Jeff Epler schreef op woensdag  4 juni om 16:59:19 +0000:
> > > ... and maybe the natural interpretation of file("-") is sys.stdin, and
> > > file("-", "w") is sys.stdout.
> > 
> > Yuk. What if I want a file called "-"?
> 
> .. then you have to call it "./-".  Just like at the shell, where you
> have to type "rm ./-" instead of "rm -".

I usually type "rm -- -".
BTW, file("-", "w") is not stdout on my system (Linux 2.4.20 Python 2.3b1+)

yours,
Gerrit.

-- 
114. If a man have no claim on another for corn and money, and try to
demand it by force, he shall pay one-third of a mina of silver in every
case.
        -- 1780 BC, Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/





More information about the Python-list mailing list