摘要: meta-programming是AOP实现的经常性手段,而这里要展示的,是利用Python的metaclass能力来实现 AOP。当a的setx方法被调用时,会被“拦截”,先输出pre...然后是原始setx的方法调用,最后输出post...Code highlighting produced by Actipro CodeHighlighter (freeware)ht... 阅读全文
posted @ 2006-04-28 09:05 Cavingdeep 阅读(1651) 评论(0) 推荐(0) 编辑