Property Function

AON LAZIO aonlazio at gmail.com
Tue Sep 23 21:05:27 EDT 2008


Hi,
    In python code,
    class A:
        get(self):
              do something
        set(self):
              do something
        g=property(get,set)

what is the good use of "property" function?, I do not understand clearly..


Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080923/edcaeb0d/attachment.html>


More information about the Python-list mailing list