built-in 'property'
Bob.Cowdery at CGI-Europe.com
Bob.Cowdery at CGI-Europe.com
Mon Dec 27 03:42:01 EST 2004
More information about the Python-list mailing list
Mon Dec 27 03:42:01 EST 2004
- Previous message (by thread): built-in 'property'
- Next message (by thread): built-in 'property'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Can any one explain how property works. It seems to be fine if executed on import i.e. if the property statement is at class scope. If I put the statement inside __init__() then it appears to work ok but when I try to access the property by e.g. klass.x it just tells me it is a property object. Is this statement only designed to work at class scope? I really want to set these properties per instance. Thanks Bob Bob Cowdery CGI Senior Technical Architect +44(0)1438 791517 Mobile: +44(0)7771 532138 bob.cowdery at cgi-europe.com <mailto:bob.cowdery at cgi-europe.com> *** Confidentiality Notice *** Proprietary/Confidential Information belonging to CGI Group Inc. and its affiliates may be contained in this message. If you are not a recipient indicated or intended in this message (or responsible for delivery of this message to such person), or you think for any reason that this message may have been addressed to you in error, you may not use or copy or deliver this message to anyone else. In such case, you should destroy this message and are asked to notify the sender by reply email. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20041227/d9782d0c/attachment.html>
- Previous message (by thread): built-in 'property'
- Next message (by thread): built-in 'property'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list