Nick Maclaren wrote: > |> Why would you have a file named '<stdin>' in your current directory? > > Why would Python search for one? :-) > > In both cases, the normal answer is "Someone made a mistake" but, if > you have a script that creates a files of the same names specified in > the current directory, what name should it use if you specify stdin?
given that "<stdin>" is an invalid filename on some platforms, why would any serious programmer use "<stdin>" for an external file ? > It is one of the standard conventions, which is (after all) why Python > is searching for it. the only reason Python's searching for it is that the CLI implementation passes "<stdin>" as the second argument to compile: http://pyref.infogami.com/compile </F> -- http://mail.python.org/mailman/listinfo/python-list