Re: [Tutor] Python Best Practice/Style Guide question

2008-04-30 Thread Alan Gauld
"Arthur" <[EMAIL PROTECTED]> wrote i like to write variable the kamelWay (i learned it from some javascript book some time ago) Camel case is fine. I thionk it actually originated in smalltalk 74 so its been around a long time. but i never use spaces even in between : variableName=variableV

Re: [Tutor] Python Best Practice/Style Guide question

2008-04-29 Thread Arthur
i like to write variable the kamelWay (i learned it from some javascript book some time ago) but i never use spaces even in between : variableName=variableValue. i guess i like compact code with fewer lines ... always thought shorter programs run faster... & it also makes you feel that your way it

Re: [Tutor] Python Best Practice/Style Guide question

2008-04-29 Thread Scott Sandeman-Allen
On 4/29/08, Marc Tompkins ([EMAIL PROTECTED]) wrote: >On Tue, Apr 29, 2008 at 9:22 AM, Scott SA <[EMAIL PROTECTED]> wrote: > >>- More than one space around an assignment (or other) operator to >> align it with another. >> > When the guy who invented the language >tells me I'm doing it wro

Re: [Tutor] Python Best Practice/Style Guide question

2008-04-29 Thread Alan Gauld
"W W" <[EMAIL PROTECTED]> wrote Even with monospace, I can't really see it being that helpful, after all, in: x = 3 y = 5 foobar_fun = 20 3 and 5 are in no way related, x and 3 are. However, sometimes I break them up into more beautiful chunks: In Python it doesn't make much difference b

Re: [Tutor] Python Best Practice/Style Guide question

2008-04-29 Thread W W
Even with monospace, I can't really see it being that helpful, after all, in: x = 3 y = 5 foobar_fun = 20 3 and 5 are in no way related, x and 3 are. However, sometimes I break them up into more beautiful chunks: x = 3 y = 5 foobar_fun = 20 sometimes it's more helpful that way. just my 2.5c -

Re: [Tutor] Python Best Practice/Style Guide question

2008-04-29 Thread Michael Langford
This, like many style guidelines, is not something that necessary has an irrefutable reason. Sort of like driving on the left or right side of the road, it is pretty much custom. You'll get use to coding like that after a short time if you start. If you don't, nothing bad will happen to you, just

Re: [Tutor] Python Best Practice/Style Guide question

2008-04-29 Thread Marc Tompkins
On Tue, Apr 29, 2008 at 9:22 AM, Scott SA <[EMAIL PROTECTED]> wrote: >- More than one space around an assignment (or other) operator to > align it with another. > When I first started in Python, I was lining up all of my variable assignments in blocks; I, too, find it more readable. But

[Tutor] Python Best Practice/Style Guide question

2008-04-29 Thread Scott SA
Per the interesting read at Can anyone explain the rationale behind this: - More than one space around an assignment (or other) operator to align it with another. Yes: x = 1 y = 2 long_variable = 3