Re: [Tutor] Suggestions about documenting a function

2006-10-31 Thread Jorge Azedo
Thanks for all your help guys, but after trying to read just bits and 
pieces of the manual and not understanding a single sentence, much less 
a single chapter, I decided to just put this function on hold until I 
read the whole Tutorial from start to finish. I just hope it doesn't 
take to long...
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] One million and counting

2006-10-31 Thread Jorge Azedo
Congrats! I know that what I know about Python I learned from your 
guide, so a personal thanks from me :)




Alan Gauld wrote:
> Hi folks,
>
> In just thought I'd mention that my web tutor has now passed 
> the million visitors mark. Thanks to all those on the tutor 
> list who have paid a visit.
>
> Alan Gauld
> Author of the Learn to Program web site
> http://www.freenetpages.co.uk/hp/alan.gauld
> ___
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>   
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Suggestions about documenting a function

2006-10-30 Thread Jorge Azedo
Thanks for your help guys. It will take me some time to understand 
exactly what you suggested to fix the function (I'm still a newb at 
this) but thanks for your help. I'll keep you posted on the updates :)
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Suggestions about documenting a function

2006-10-30 Thread Jorge Azedo
I'm writing a function that generates a list with user defined length, 
that consists only of non-repeating random integers in a user defined range.
Even I don't understand what I just wrote, so I'm just going to post the 
code and an example of the results :P

## Test module
## Last revision 31 October 2006

import random

def randomList(n1,n2,len):
'''n1-n2 range of numbers, len - length of the final list

Returns a list'''

i=0
rndlist=[]
if len > n2:
return 'The length of the list must be greater than n2'
else:
while i < len:
rand=random.randint(n1,n2)
if rndlist.count(rand) == 0:
rndlist.append(rand)
i=i+1
return rndlist

randomList(1,9,9)
[9, 8, 1, 4, 7, 6, 5, 3, 2]

Not sure if the indentation in this message is correct, but the module 
works, so that's not the problem. What I really want to ask is: Any 
suggestions on how to improve the documentation part of the module? I'd 
like to warn the user about the fact that len must be greater than n2 
before he runs it, but I can't think of a short enough way to say it so 
that it still appears in that little window that shows up when  you 
start writing the arguments to a function.
Sorry if this is confusing
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Mailing list question

2006-10-26 Thread Jorge Azedo
Danny Yoo wrote:
>
>
>>> Not so much a question about Python, but here goes:
>>>
>>> How do I reply to a specific thread in the mailing list? If I place 
>>> "Re:bla bla"  in the subject line, I notice that I start a new 
>>> thread, I don't continue one that already exists. How do I go about 
>>> doing this? Thanks for any info
>>
>> What e-mail client are you using?  Most have a reply-to-all button 
>> you can use so that you won't have to start a new message to reply to 
>> someone.
>
> There's a little bit of extra information that Mailman uses to detect 
> threads.  The archives don't cluster messages based on the subject 
> line, but instead use a specific header value whose name I'm 
> completely forgetting right now... *grin* (I think it's the 
> 'In-Reply-To' header line.)  Your email client should be the one 
> responsible for maintaining that threading information.
>
I'm trying to use the Reply All button on my mail client (I use 
Thunderbird, by the way) like you guys suggested. Let's see if it works  
:-P
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Mailing list question

2006-10-26 Thread Jorge Azedo
Not so much a question about Python, but here goes:

How do I reply to a specific thread in the mailing list? If I place   
"Re:bla bla"   in the subject line, I notice that I start a new thread, 
I don't continue one that already exists. How do I go about doing this?
Thanks for any info
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] New to programming and Python

2006-10-26 Thread Jorge Azedo
First off, I don't know if I'm doing this right, I've never used a 
mailing list before, so I'm not sure if I'm sending this to the right place.

Thanks for all the help you guys gave me ( e vocês também pessoal, é bom 
saber que há pessoal português por aqui :-) ). I'll try and read as many 
tutorials as I can and start to work on some programs of my own. Let's 
hope I can make something useful or fun.
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] New to programming and Python

2006-10-25 Thread Jorge Azedo
Hi guys ( and gals )

I'm totally new to the whole programming scene (I decided to enter it 
for many reasons, one of which is the fact that I *want* to know how to 
program my computer) and I decided to start out with Python. I'm reading 
lots of tutorials on it, trying to understand how to work with it, but 
for some reason or another, it all seems a great mess to me. Am I doing 
something wrong? Also, can anyone give me any pointers on how to start 
working with Python?

Thanks in advance for any help you can give me
- Jorge
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor