Re: create words of various lengths

2005-05-13 Thread Robert Kern
[EMAIL PROTECTED] wrote: > :) the reason for me not upgrading my python is I am waiting for > version of Numeric to be released for python 2.4 .The stable version of > Numeric is only release for windows and not Linux I guess the last time > i checked. which i use a lot . Install from source. It w

Re: create words of various lengths

2005-05-13 Thread [EMAIL PROTECTED]
:) the reason for me not upgrading my python is I am waiting for version of Numeric to be released for python 2.4 .The stable version of Numeric is only release for windows and not Linux I guess the last time i checked. which i use a lot . Anyway thanks -- http://mail.python.org/mailman/listinfo

Re: create words of various lengths

2005-05-13 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > no specific number of words. anything between one and a gazillion, you mean? having some idea of the upper bound helps when chosing what algorithm/database/computer to use... > and I get a syntax error on line: > > words["".join(choice(alphabet) for i in range(randint

Re: create words of various lengths

2005-05-13 Thread [EMAIL PROTECTED]
this works while len(words) < 1: wd = "" for i in ["".join(choice(alphabet)) for i in range(randint(1,15))]: wd += i words[wd] = None anyway Thanks for that this is exactly what i need.. -- http://mail.python.org/mailman/listinfo/python-list

Re: create words of various lengths

2005-05-13 Thread [EMAIL PROTECTED]
no specific number of words. and I get a syntax error on line: > words["".join(choice(alphabet) for i in range(randint(1,15)))] = None -- http://mail.python.org/mailman/listinfo/python-list

Re: create words of various lengths

2005-05-13 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Hi Robert, > At first I thought it would be an interesting thing to have a little > swift module to create a database of all words in the dictionary. Okay, take one more step back. Why is it interesting to have such a dictionary? How do you intend to use it? Having ans

Re: create words of various lengths

2005-05-13 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > what I am looking for is > > 1. To create a list of different words of various lengths(1-15) using > A-Z,a-z,0-9 and punctuations.Basically anything that could be found on > a text document. > > 2. The words formed need not be meaningful .FOr example 'ajf' or > 'fcjgdtfh

Re: create words of various lengths

2005-05-13 Thread [EMAIL PROTECTED]
Hi Robert, At first I thought it would be an interesting thing to have a little swift module to create a database of all words in the dictionary.But then I thought y just the words in the dictionary? y not all possible words like 'and' and 'adn'. Just was inspired with the little idea of if its an

Re: create words of various lengths

2005-05-13 Thread Robert Kern
[EMAIL PROTECTED] wrote: > "X-No-Archive: yes" > > what I am looking for is > > 1. To create a list of different words of various lengths(1-15) using > A-Z,a-z,0-9 and punctuations.Basically anything that could be found on > a text document. > > 2. The words formed need not be meaningful .FOr ex

create words of various lengths

2005-05-13 Thread [EMAIL PROTECTED]
"X-No-Archive: yes" what I am looking for is 1. To create a list of different words of various lengths(1-15) using A-Z,a-z,0-9 and punctuations.Basically anything that could be found on a text document. 2. The words formed need not be meaningful .FOr example 'ajf' or 'fcjgdtfhbs' or even 'gfdew!