Re: Axiom Testing

Glyph Lefkowitz <[email protected]> Fri, 10 Feb 2006 13:15:54 -0500
Newsgroups gmane.comp.python.quotient.dev
Message-ID <[email protected]>
On Fri, 2006-02-10 at 14:32 -0300, Gabriel Jacobo wrote:

> By the way, I´m trying to add a "safe reference" behavior to Axiom 
> (references that keep ref counts to avoid elimination of referenced 
> objects), but the only way I´ve found to add behavior to item.Item is by 
> changing the code right there, I mean I couldn´t find a way to "cheat" 
> the "inheritance protection" system. Which is the recommend way of doing 
> this?

You probably want referential integrity enforcement, not refcounting :).
I happen to be starting work on such a thing today; hopefully some time
in the next week it will be usable.  We also really need to get a
release out sometime soon...

The suggested way to "cheat" and use inheritance is to write mixins
rather than subclassing Item.