A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-June/111918.html below:

[Python-Dev] Implement Aspect-oriented programming

[Python-Dev] Implement Aspect-oriented programming [Python-Dev] Implement Aspect-oriented programmingVinay Sajip vinay_sajip at yahoo.co.uk
Mon Jun 13 18:25:11 CEST 2011
Jiawei Li <jiawei.h.li <at> gmail.com> writes:

> For example, the logging module is not very useful right now, as it requires
sprinkling small one-liners all over my code - not exactly ideal.
> Why not take a page from aspect-oriented programming and allow for injection
of code with point cuts?

If you're only interested in logging method entry and exit - in which case,
you're not really using logging to its full potential - then an AOP style
approach may work for you. But the point of logging is to send messages to
yourself (and others) from your code, and an AOP approach will not lend itself
to intelligent, context-sensitive messages.

Regards,

Vinay Sajip




More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4