[Tutor] syntax error that i cant spot!
Noah Hall
enalicho at gmail.com
Sun Jan 2 14:52:32 CET 2011
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 readability.". Notice the word "readability" there ;). It's not a
big issue when you're working by yourself, but when working with multiple
people, or asking for help (like the OP here), you should stick to the
conventions of that language. it saves you time when you're trying to read
other people's code, it saves others' time when they try to read your code
and it saves time when they try and fix your code. It just makes life
easier.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110102/0a6dd517/attachment.html>
More information about the Tutor
mailing list