[Pythonmac-SIG] Re: I stand corrected on BBEdit Python Filters

Neil Mayhew niel_mayhew@mac.com
Thu, 19 Dec 2002 11:26:38 -0700


on 19/12/2002 10:13 AM, Mark Day wrote:
> BBEdit runs your filter with the input in a temporary file passed as an
> argument (not standard input)... I think the Perl <> construct reads from the
> filenames given as arguments, or standard input if there were no arguments.

IOW, the version using the Python fileinput module worked because fileinput
does the same as the Perl construct, ie it uses sys.argv or sys.stdin as
appropriate.

--Neil