[Python-Dev] Declaring setters with getters (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Nov 1 23:01:55 CET 2007


Guido van Rossum wrote:

if you want more control, you can just get the property object out of the class you want

You're quite right. I was thinking that getting the property would trigger the access machinery, but of course you're getting it from the class rather than the instance, so that doesn't happen.

-- Greg



More information about the Python-Dev mailing list