In article <[EMAIL PROTECTED]>,
"Simon Forman" <[EMAIL PROTECTED]> writes:
|> Nick Maclaren wrote:
|> ...
|> > Create a file called '<stdin>' in your current directory containing
|> > 'print "Oh, yeah?\n"' and then import a module that doesn't exist.
|> > Don't include the single quotes.
|> 
|> 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?
It is one of the standard conventions, which is (after all) why Python
is searching for it.

Anyway, I have now reported the bug - but this bug is more amusing than
serious.


Regards,
Nick Maclaren.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to