[Python-3000] class style

paul bedaride paul.bedaride at gmail.com
Fri May 9 22:34:18 CEST 2008


 Hello,

I'm new on this list and it's just for ask a question about class-style in
python 3000
because I don't understand for instance why in
class Example(object):
    var1 = 'example'
    var2 = property(fget=lambda self: 'example')

var1 seems to be linked to class and var2 to object.
In more it not seem possible to define class property and it could be
usefull.

I don't know if you have already discuss about class style but if you have
could you give me the log ?

thanks in advance

paul bedaride
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-3000/attachments/20080509/28a7294a/attachment.htm>


More information about the Python-3000 mailing list