Fredrik Lundh wrote:
if you check my original post, you'll find code for a new list helper
function, which would solve this in a convenient way.
Yep - I thought I'd seen something like this, but couldn't find it
(eventually found it by searching for Lundh ;). That's exactly what I
was thinking
Barry Warsaw wrote:
It does seem like the more popular convention is to use cls than
class_. I'll admit the latter does look kind of ugly. Maybe the
suggestion should be to use either a trailing single underscore or an
abbreviation instead of a spelling corruption. We could then list some
On Fri, 2005-12-09 at 17:19 -0600, Ian Bicking wrote:
I personally feel cls should be used for classmethods, and not
elsewhere. Just like I wouldn't like someone using self outside of
the first argument of instance methods. So class_ still would be a good
spelling elsewhere.
Cool.
Barry Warsaw wrote:
On Fri, 2005-12-09 at 15:38 -0600, Ian Bicking wrote:
Also decide whether your attributes should be private or not.
The difference between private and non-public is that the former
will never be useful for a derived class, while the latter might
On Fri, 2005-12-09 at 16:23 -0800, Robert Brewer wrote:
Barry Warsaw wrote:
Again, I'd say something like: Since your exceptions
will be classes, use the CapWord naming convention for
classes to name your exceptions. It is recommended
that your exception class end in the word Error.