Can I run an operation on an object's attribute when reading?

Phillip B Oldham phillip.oldham at
Mon Jan 19 13:22:39 CET 2009

On Mon, Jan 19, 2009 at 12:15 PM, Chris Rebert <clp2 at> wrote:
> Assuming I'm interpreting you correctly (you're going to have to use
> something like a getter):

Thanks, but I'm looking for a way to do it *without* using a getter as
I don't have easy access to the class (its being generated for me
elsewhere). Essentially I'd like to overwrite (if possible) the
default behavior when returning certain attributes on certain objects.

More information about the Python-list mailing list