[ale] Python help for sig generator
Trey Sizemore
treysizemore at bigfoot.com
Sun Mar 16 11:30:10 EST 2003
On Sun, 16 Mar 2003 10:30:14 -0500, "Irv Mullins" <irvm at ellijay.com>
said:
> 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
>
It works great now. Thanks for your help!
-Trey
--
Trey Sizemore
trey at fastmail.fm
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list