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

Phillip B Oldham phillip.oldham at gmail.com
Mon Jan 19 07:22:39 EST 2009


On Mon, Jan 19, 2009 at 12:15 PM, Chris Rebert <clp2 at rebertia.com> 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