AOP use cases

Joe Mason joe at notcharles.ca
Sun Apr 18 19:31:50 EDT 2004


In article <c5umdd$5p4fj$1 at ID-139865.news.uni-berlin.de>, Dave Kuhlman wrote:
> John Roth wrote:
> 
>> "Peter Hansen" <peter at engcorp.com> wrote in message
>> news:0pydnSB4WYuieuLdRVn-hQ at powergate.ca...
>>> Will Stuyvesant wrote:
>>>
>>> > What are good usage examples?
>>>
> 
> [snip]
> 
>> 
>> I suspect you're not going to get any really compelling ones.
> 
> Isn't AOP antithetical to the Pythonic admonition to make
> everything explicit?
> 
>     "Explicit is better than implicit."
>         -- The Zen of Python (by Tim Peters)
> 
> You can stare at a section of AOP code as intently as you like,
> and never discover the changes that are woven into it.

You know, it strikes me that PEP318's decorators could be a nice way to
weave an aspect into a method explicitly, with a tag on the method,
rather than implicitly, with a list of weaves somewhere else in the
program.

Joe



More information about the Python-list mailing list