<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AOPython 1.0.2</title>
	<atom:link href="http://pieces.openpolitics.com/2005/08/aopython-102/feed/" rel="self" type="application/rss+xml" />
	<link>http://pieces.openpolitics.com/2005/08/aopython-102/</link>
	<description>Puzzlings on software development and other topics of interest</description>
	<lastBuildDate>Thu, 11 Mar 2010 21:20:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: daniel</title>
		<link>http://pieces.openpolitics.com/2005/08/aopython-102/comment-page-1/#comment-71</link>
		<dc:creator>daniel</dc:creator>
		<pubDate>Thu, 18 Aug 2005 03:30:46 +0000</pubDate>
		<guid isPermaLink="false">http://pieces.openpolitics.com/2005/08/aopython-102/#comment-71</guid>
		<description>Sylvain, thanks for the comment. I hope you find it useful.



Shai, thanks for your input as well. I think there are a few things that AOPython can do that are not quite as simple with decorators, but I could be wrong because I haven&#039;t used them.



AOPython can-

1. wrap almost any callable (not just functions). Note that some callables, once wrapped, cannot be reassigned to their original name/location (i.e. list.append is not a writeable attribute). This simply means that the wrapped version must be referred to by a different alias.

2. declaratively weave or wrap any class or function--even ones that are imported--with minimal syntax. I believe decorators must be applied by putting the @deco line before the function declaration.



Note, I wrote AOPython on Python 2.3.4. After trying it out on 2.4 tonight I noticed that the last doctest (complex weave example--weave the re module) does not pass. Guess I still have some work to do. To be fair, I could just remove that test as it isn&#039;t a very good test anyway--it&#039;s more of an elaborate example.</description>
		<content:encoded><![CDATA[<p>Sylvain, thanks for the comment. I hope you find it useful.</p>
<p>Shai, thanks for your input as well. I think there are a few things that AOPython can do that are not quite as simple with decorators, but I could be wrong because I haven&#8217;t used them.</p>
<p>AOPython can-</p>
<p>1. wrap almost any callable (not just functions). Note that some callables, once wrapped, cannot be reassigned to their original name/location (i.e. list.append is not a writeable attribute). This simply means that the wrapped version must be referred to by a different alias.</p>
<p>2. declaratively weave or wrap any class or function&#8211;even ones that are imported&#8211;with minimal syntax. I believe decorators must be applied by putting the @deco line before the function declaration.</p>
<p>Note, I wrote AOPython on Python 2.3.4. After trying it out on 2.4 tonight I noticed that the last doctest (complex weave example&#8211;weave the re module) does not pass. Guess I still have some work to do. To be fair, I could just remove that test as it isn&#8217;t a very good test anyway&#8211;it&#8217;s more of an elaborate example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shai</title>
		<link>http://pieces.openpolitics.com/2005/08/aopython-102/comment-page-1/#comment-70</link>
		<dc:creator>Shai</dc:creator>
		<pubDate>Wed, 17 Aug 2005 19:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://pieces.openpolitics.com/2005/08/aopython-102/#comment-70</guid>
		<description>Hi,



It seems like you have some interesting ideas, but could you explain, for the rest of us, how this improves upon Python2.4&#039;s decorators?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>It seems like you have some interesting ideas, but could you explain, for the rest of us, how this improves upon Python2.4&#8217;s decorators?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sylvain Hellegouarch</title>
		<link>http://pieces.openpolitics.com/2005/08/aopython-102/comment-page-1/#comment-69</link>
		<dc:creator>Sylvain Hellegouarch</dc:creator>
		<pubDate>Wed, 17 Aug 2005 14:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://pieces.openpolitics.com/2005/08/aopython-102/#comment-69</guid>
		<description>Hi there,



Just a quick note to say great job!

I&#039;ll have a better look soon but really nice job.



- Sylvain</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>Just a quick note to say great job!</p>
<p>I&#8217;ll have a better look soon but really nice job.</p>
<p>- Sylvain</p>
]]></content:encoded>
	</item>
</channel>
</rss>
