Re: newbie questions

2004-12-13 Thread houbahop
Dominique. "Nick Coghlan" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > "houbahop > Thank you everyone, but I still not understand why such a comon feature >> like passing parameters byref that is present in most serious programming

Re: for loop

2004-12-12 Thread houbahop
thank you, Whith python, It seems that all that I have learn in other languages is not directly usable :) but looks like python is more efficient. dominique. <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > houbahop wrote: >> Hello, >> I have seen a

for loop

2004-12-12 Thread houbahop
Hello, I have seen a lot of way to use the for statement, but I still don't know how to do: for i=morethanzero to n or for i= 5 to len(var) of course I kno wthat I can use a while loop to achieve that but if this is possible whith a for one, my preference goes to the for. regards, Dominique.

Re: from vb6 to Python

2004-12-11 Thread houbahop
Hi, I have used VB6 a lot too and Python appears to me as a good alternative to .net too, but the thing that will do the difference is the GUI... I hope the ones for Python are beautifull enough as appearence is an important thing to me in softwares. D. "MarcoL" <[EMAIL PROTECTED]> a écrit dans

Re: newbie questions

2004-12-11 Thread houbahop
"Dennis Lee Bieber" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > On Sat, 11 Dec 2004 12:43:01 GMT, "houbahop" me)@chello.fr> declaimed the following in comp.lang.python: > >> Thank you everyone, but I still not understand why

Re: newbie questions

2004-12-11 Thread houbahop
de. I believe I will use it more in the future. Dominique. "Steven Bethard" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > houbahop wrote: >> Hello again everyone , >> var2[:]=[] has solved my problem, and I don't understand why it is &

Re: newbie questions

2004-12-11 Thread houbahop
Hello again everyone , var2[:]=[] has solved my problem, and I don't understand why it is programming by side effect. I don't think it's bad, look at this, it's what I've done : def Clear(lvar) lvar[:]=[] def main (starting class) var1=[] var1.append('a') Clear(var1) var1 can only

Re: newbie questions

2004-12-11 Thread houbahop
Hi, "Steven Bethard" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > houbahop wrote: >> Thank you everyone, but I still not understand why such a comon feature >> like passing parameters byref that is present in most serious programming &g

Re: newbie questions

2004-12-11 Thread houbahop
Thank you everyone, but I still not understand why such a comon feature like passing parameters byref that is present in most serious programming languages is not possible in a clean way,here in python. I have the habit to never use globals as far as possible and this involve that my main functi

newbie questions

2004-12-10 Thread houbahop
Hello everyone, I'm new to python dev, and there are some things I don't understand about arrays and subs In my code, I have an array of strings (in the main function) self.SortiesAnimeTitreLabel = [] then I pass this array to a sub that fill it it ( using.append('blabla') : self.Ins