Markov.py

cpsoct at my-deja.com cpsoct at my-deja.com
Mon Jan 22 06:28:51 EST 2001


Thanks for the tip. However i guess what i don't understand is what
type of input it expects. A file, many files, strings (and if so
delimited, how, how parsed?), i didn't really understand all the flags
etc. To me, a dummy, this kind of thing is silly as it contains no
example and no doc string. in this case (a complex module file) an
example of input and output would go a long way to explain how this
makes a markov chain. Does it expect a table of possibilities? Where
are they set? etc. etc.... like if i write an func i usually say
briefly, what it does(ok, i know what a markov chain is), but more
importantly what it expects and barfs out at execution.

def lace(lista, listb)
    """lace: takes two lists and interlaces the list elements into a
single list

    e.g: lace([1,2,3], [a,b,c]) returns: [[1,a], [2,b], [3,c]]"""


anyway, it sounds too much like i am complaining now, so i'll shut up,
since i am getting what paid for <wink>. And note that if you think i
am imitating a very famous pythonite, you are right.

hee, hee, hee

anyway, thanks for taking the time to answer.

cheers,
kevin parks
seoul, korea


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list