[ale] Python help for sig generator

Trey Sizemore trey at fastmail.fm
Sun Mar 16 10:53:02 EST 2003


On Sun, 2003-03-16 at 10:30, Irv Mullins wrote:
> 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
> 
Thanks....it works great now!:-)
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list