[Tutor] Property questions
John Fabiani
jfabiani at yolo.com
Sat Nov 13 21:34:17 CET 2004
Hi,
First how does python know which method to use as in:
size = property(getsize,setsize,delsize,'test doc')
I just have not seen anything/example that uses the dele of the "property".
so:
"size = something" # would call the getsize method because of the '=' sign?
"size" # would call the setsize because of what?
"dele size" # would call the delete method ??????? is that right?
And how does one call the comment part??
"size.__doc__"
Thanks
More information about the Tutor
mailing list