Markov.py

Rick Lee rwklee at home.com
Sun Jan 21 18:56:06 EST 2001


You can pass a command line parms in a Mac by option-double-clicking on
the .py or .pyc file, or by option-dragging-and-dropping the .py or .pyc
file onto the python interpreter application; this opens up a dialog
where you can set all the interpreter command line options.

- Rick Lee

Emile van Sebille wrote:

> The documentation is included in the script itself, see the
> start of the test routine.  On a system with a command line
> interface, this runs as the documentation indicates,
> however, I'm not sure how command line arguments are passed
> to the Mac.  You can insert a line in the test routine:
>
>  args = [r'd:\python20\test.txt']
>
> to assign to args directly instead of reading it from the
> command line.  At least then it does something.
>
> HTH,
>
> --
>
> Emile van Sebille
> emile at fenx.com
> -------------------
>
> <cpsoct at my-deja.com> wrote in message
> news:94eavq$5cl$1 at nnrp1.deja.com...
> > I found the following script in the mac standard
> distribution (see path
> > below). It seems to be Guido's, i am not sure however, i
> am at a loss
> > as to how to use this. I was unable to run it and there is
> not
> > documentation. In otherwords, i put on my detective hat
> but was still
> > unable to get the thing to run. Anyone use this and can
> explain to me
> > how? The script is a bit to big and complex for my level
> of python kno-
> > how, but how sweet would it be to be able to make a markov
> chain in
> > python without having to re-invent the wheel. Particularly
> since i
> > wouldn't be able to in this case!
> >
> > cheers,
> > kevin parks
> > seoul, korea
> > cpsoct at lycos.com
> >




More information about the Python-list mailing list