Nick Maclaren wrote: > 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? :-)
Fair enough.. : ) > 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. I usually refrain from posting if I don't have anything to add to the discussion, but that struck me as perverse and I was curious. I certainly have no objection to having that bug fixed. : ) Peace, ~Simon -- http://mail.python.org/mailman/listinfo/python-list