open(False) in python3
Johan Förberg
johan at forberg.se
Wed May 12 04:05:33 EDT 2010
On Tue, 11 May 2010 19:27:37 -0300, Gabriel Genellina wrote:
> so open(False) is the same as open(0), and 0 is the file descriptor
> associated to standard input. The program isn't hung, it's just waiting
> for you to type some text
That's interesting. Are there any more numbered pseudofiles? I suppose
its mainly an excellent way to confuse people when you open(0).read(),
but it would be interesting to know.
Johan Förberg
More information about the Python-list
mailing list