Re: [Tutor] simple random string generator

2012-09-18 Thread Matthew Dalrymple
occurred due to this Thanks for all of your help Matt > To: tutor@python.org > From: breamore...@yahoo.co.uk > Date: Tue, 18 Sep 2012 06:15:49 +0100 > Subject: Re: [Tutor] simple random string generator > > @Matthew Dalrymple I don't know what is happening but that's

Re: [Tutor] simple random string generator

2012-09-18 Thread eryksun
On Tue, Sep 18, 2012 at 1:24 AM, Dave Angel wrote: > On 09/18/2012 01:15 AM, Mark Lawrence wrote: >> @Matthew Dalrymple I don't know what is happening but that's at least >> two messages from you that show precisely nothing, just original >> comments from others. Anyone else seeing the same thing

Re: [Tutor] simple random string generator

2012-09-17 Thread Dave Angel
On 09/18/2012 01:15 AM, Mark Lawrence wrote: > @Matthew Dalrymple I don't know what is happening but that's at least > two messages from you that show precisely nothing, just original > comments from others. Anyone else seeing the same thing? I'm reading > through gmane on Windows Vista with Thun

Re: [Tutor] simple random string generator

2012-09-17 Thread Mark Lawrence
@Matthew Dalrymple I don't know what is happening but that's at least two messages from you that show precisely nothing, just original comments from others. Anyone else seeing the same thing? I'm reading through gmane on Windows Vista with Thunderbird. -- Cheers. Mark Lawrence. ___

Re: [Tutor] simple random string generator

2012-09-17 Thread Matthew Dalrymple
> Look at what your timing code does: > > start = time.time() > for i in range(1): > anagramSolution2(word,word) > end1 = time.time() > solu2 = end1 - start > > > Translated into English: > > * start the timer > * iteration 1 begins > * call the anagram function > * grab the

Re: [Tutor] simple random string generator

2012-09-17 Thread Steven D'Aprano
On 18/09/12 06:09, Matthew Dalrymple wrote: thanks for everyone that gave me a hand...i think i got most of the program done... now i just need to time how long it takes to run each anagramSolution functions to see which one is faster...now i think i might have got it done but for some reason bo

Re: [Tutor] simple random string generator

2012-09-17 Thread Matthew Dalrymple
oh :S ok im sorry...i will change that thenthanks > Date: Mon, 17 Sep 2012 18:19:50 -0400 > From: d...@davea.name > To: computer_dud...@hotmail.com > CC: tutor@python.org > Subject: Re: [Tutor] simple random string generator > > On 09/17/2012 05:40 PM, Ma

Re: [Tutor] simple random string generator

2012-09-17 Thread Dave Angel
On 09/17/2012 05:40 PM, Matthew Dalrymple wrote: > > >>> >>> >> >> Did you look for bugs before trying to time it? For example, did you >> intend that it test the sizes from 10 thru 195 in steps of 5, or did you >> intend from 10 to 100, as you stated in your first post? >> >> Would you care to

Re: [Tutor] simple random string generator

2012-09-17 Thread Matthew Dalrymple
> > > > > > Did you look for bugs before trying to time it? For example, did you > intend that it test the sizes from 10 thru 195 in steps of 5, or did you > intend from 10 to 100, as you stated in your first post? > > Would you care to add a docstring to those functions to indicate what > the

Re: [Tutor] simple random string generator

2012-09-17 Thread Dave Angel
On 09/17/2012 04:09 PM, Matthew Dalrymple wrote: > thanks for everyone that gave me a hand...i think i got most of the program > done... now i just need to time how long it takes to run each anagramSolution > functions to see which one is faster...now i think i might have got it done > but for s

Re: [Tutor] simple random string generator

2012-09-17 Thread Matthew Dalrymple
thanks for everyone that gave me a hand...i think i got most of the program done... now i just need to time how long it takes to run each anagramSolution functions to see which one is faster...now i think i might have got it done but for some reason both lines are pretty close to the same

Re: [Tutor] simple random string generator

2012-09-16 Thread Steven D'Aprano
On 17/09/12 12:45, Matthew Dalrymple wrote: Anyway what i am trying to do is make a simple string (word) generator and get it to make strings (or words) starting at 10 chars up to 100 in steps of 5 using a make word function. Now my problem is how do i get it to run the mkword function and manip

[Tutor] simple random string generator

2012-09-16 Thread Matthew Dalrymple
hey im new to the tutor thing so please correct me if im doing something wrong. Anyway what i am trying to do is make a simple string (word) generator and get it to make strings (or words) starting at 10 chars up to 100 in steps of 5 using a make word function. Now my problem is how do i get