[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Python help for sig generator



On Saturday 15 March 2003 10:28 pm, Joe wrote:

<snip>

Don't know Python, but making the changes marked with <== causes this to 
work..

# cryptic python stuff which pulls a line from a text file
# at random
affs = open(aff_file,"r")  <== 
affs = affs.readlines()    <==
aff = affs[int(random.random() * len(affs))].split("\n")[0]

Regards,
Irv
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale