Re: [Tutor] syntax error that i cant spot!

2011-01-02 Thread Wayne Werner
On Sun, Jan 2, 2011 at 9:52 AM, Alan Gauld wrote: > "Corey Richardson" wrote > > On Sat, Jan 1, 2011 at 9:10 PM, Alan Gauld >>> wrote: >>> Why avoidCamelCase? I actually prefer it to using_non_camel_case >>> >>> Python appears to use camelCase more than not. >>> >>> >> I tend to disag

Re: [Tutor] syntax error that i cant spot!

2011-01-02 Thread Ken Green
I generally prefer Camel Case as easily to use as it would be more difficult for me as a touch typist to hunt and peck for the underscore. Ken On 01/02/2011 09:40 AM, Brett Ritter wrote: On Sat, Jan 1, 2011 at 9:10 PM, Alan Gauld wrote: Why avoidCamelCase? I actually prefer it to using_non_c

Re: [Tutor] syntax error that i cant spot!

2011-01-02 Thread Alan Gauld
"Corey Richardson" wrote On Sat, Jan 1, 2011 at 9:10 PM, Alan Gauld wrote: Why avoidCamelCase? I actually prefer it to using_non_camel_case Python appears to use camelCase more than not. I tend to disagree with that. In the stdlib, as well as the builtins, many, many methods are alllow

Re: [Tutor] syntax error that i cant spot!

2011-01-02 Thread Corey Richardson
On 01/02/2011 09:40 AM, Brett Ritter wrote: > On Sat, Jan 1, 2011 at 9:10 PM, Alan Gauld wrote: >> Why avoidCamelCase? I actually prefer it to using_non_camel_case > > The readability is an often argued topic - I myself find the space of > names_in_underscores to be more readable (words are disti

Re: [Tutor] syntax error that i cant spot!

2011-01-02 Thread Hugo Arts
On Sun, Jan 2, 2011 at 3:40 PM, Brett Ritter wrote: > On Sat, Jan 1, 2011 at 9:10 PM, Alan Gauld wrote: >> Why avoidCamelCase? I actually prefer it to using_non_camel_case > > The readability is an often argued topic - I myself find the space of > names_in_underscores to be more readable (words a

Re: [Tutor] syntax error that i cant spot!

2011-01-02 Thread Brett Ritter
On Sat, Jan 1, 2011 at 9:10 PM, Alan Gauld wrote: > Why avoidCamelCase? I actually prefer it to using_non_camel_case The readability is an often argued topic - I myself find the space of names_in_underscores to be more readable (words are distinct), but I try to follow the common conventions of t

Re: [Tutor] syntax error that i cant spot!

2011-01-02 Thread Noah Hall
He has no classes in there. Therefore, there is no place it should be in this code. Please remember this is Python, and not Java nor anything else. To quote directly from PEP 8, in regards to functions and variables, "should be lowercase, with words separated by underscoresas necessary to improve

Re: [Tutor] syntax error that i cant spot!

2011-01-02 Thread Alan Gauld
"Noah Hall" wrote It's part of the Python naming conventions laid out by PEP 8. Have a read here - http://www.python.org/dev/peps/pep-0008/. I'm quite familiar with PEP8 - although I disagree with quite a lot of it too! But PEP 8 is about consistency of style not "readability" which was w