Input from the same file as the script
ZeD
vito.detullio at gmail.com
Mon Aug 21 06:01:37 EDT 2006
Dennis Lee Bieber wrote:
>> Can the input to the python script be given from the same file as the
>> script itself. e.g., when we execute a python script with the command
>> 'python <scriptName', can the input be given in someway ?
>>
> Redirecting? Ugh...
>
> Off-hand, I'd say NO
>
> There is no way to tell the python interpreter where the program
> ends and the "run data" begins.
maybe, as an UGLY hack he coud use some the comments
--
Under construction
More information about the Python-list
mailing list