Hooks, aspect-oriented programming, and design by contract

Luigi Ballabio ballabio at mac.com
Wed Jan 23 11:04:35 EST 2002


At 02:11 PM 1/23/02 +0100, Alex Martelli wrote:
>I see no reason in Python why said object
>should necessarily be a class, at least in Python and other languages
>allowing independent alterations to instances (I think Ruby does that,
>and I wonder if Aspect/R supports only class-level, or also instance
>level, aspecting/augmenting).

Hi,
         it does support class or instance augmenting transparently, i.e.,

aspect.wrap(SomeClass,precond,postcond,methods)

and

aspect.wrap(instance,precond,postcond,methods)

do what you would expect.

Bye,
         Luigi





More information about the Python-list mailing list