Re: Input from the same file as the script

2006-08-22 Thread Dieter Maurer
Georg Brandl <[EMAIL PROTECTED]> writes on Sun, 20 Aug 2006 20:08:38 +0200: > [EMAIL PROTECTED] 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 > When I ran the below the python i

Re: Input from the same file as the script

2006-08-21 Thread ZeD
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 > > Redirecting? Ugh... > > Off-hand, I'd say NO > > There is no way to tell the python interpreter where the pro

Re: Input from the same file as the script

2006-08-21 Thread Hendrik van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> Wrote: | On 20 Aug 2006 11:02:25 -0700, [EMAIL PROTECTED] declaimed the | following in comp.lang.python: | | > 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

Re: Input from the same file as the script

2006-08-20 Thread Bernhard Mulder
you can (ab)use doc strings. See the doctest module for an example. -- http://mail.python.org/mailman/listinfo/python-list

Re: Input from the same file as the script

2006-08-20 Thread Georg Brandl
[EMAIL PROTECTED] 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 > When I ran the below the python interpreter gave an error. *sigh* Why do you think that we could guess what error t

Input from the same file as the script

2006-08-20 Thread poggle . themammal
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 http://mail.python.org/mailman/listinfo/python-list