<?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: Expert Python Programming by Tarek Ziadé &#8211; a review of Chapter 2</title>
	<atom:link href="http://python.genedrift.org/2009/02/06/expert-python-programming-by-tarek-ziade-a-review-of-chapter-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://python.genedrift.org/2009/02/06/expert-python-programming-by-tarek-ziade-a-review-of-chapter-2/</link>
	<description>a step-by-step guide to create Python applications in bioinformatics</description>
	<lastBuildDate>Sun, 02 May 2010 04:24:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
	<item>
		<title>By: Arthur</title>
		<link>http://python.genedrift.org/2009/02/06/expert-python-programming-by-tarek-ziade-a-review-of-chapter-2/comment-page-1/#comment-24591</link>
		<dc:creator>Arthur</dc:creator>
		<pubDate>Sat, 07 Feb 2009 08:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://python.genedrift.org/?p=235#comment-24591</guid>
		<description>Thanks for the review so far, I&#039;m also relatively new to Python (have been using it for slightly over a year now) and thinking about buying the book.

Regarding decorators you might want to take a look at how various web frameworks use them.

For example, Django has the &quot;login_required&quot; decorator for views, which allows them to be available only for users who are logged in. The decorator goes through the request and checks if the user is authenticated and then either executes the view or redirects to a specified &quot;login-required&quot;-page.

Or the &quot;cache_page&quot; decorator for views, which first checks the cache and based on that returns either the cached page or executes the view.

CherryPy uses the &quot;exposed&quot; decorator to mark methods which are accessible via the Web: http://tinyurl.com/dmgts8

The  Restish example here http://tinyurl.com/9nxo8g also uses decorators to to expose specific functions in a rest interface.</description>
		<content:encoded><![CDATA[<p>Thanks for the review so far, I&#8217;m also relatively new to Python (have been using it for slightly over a year now) and thinking about buying the book.</p>
<p>Regarding decorators you might want to take a look at how various web frameworks use them.</p>
<p>For example, Django has the &#8220;login_required&#8221; decorator for views, which allows them to be available only for users who are logged in. The decorator goes through the request and checks if the user is authenticated and then either executes the view or redirects to a specified &#8220;login-required&#8221;-page.</p>
<p>Or the &#8220;cache_page&#8221; decorator for views, which first checks the cache and based on that returns either the cached page or executes the view.</p>
<p>CherryPy uses the &#8220;exposed&#8221; decorator to mark methods which are accessible via the Web: <a href="http://tinyurl.com/dmgts8" rel="nofollow">http://tinyurl.com/dmgts8</a></p>
<p>The  Restish example here <a href="http://tinyurl.com/9nxo8g" rel="nofollow">http://tinyurl.com/9nxo8g</a> also uses decorators to to expose specific functions in a rest interface.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Lasher</title>
		<link>http://python.genedrift.org/2009/02/06/expert-python-programming-by-tarek-ziade-a-review-of-chapter-2/comment-page-1/#comment-24575</link>
		<dc:creator>Chris Lasher</dc:creator>
		<pubDate>Fri, 06 Feb 2009 20:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://python.genedrift.org/?p=235#comment-24575</guid>
		<description>Paulo, I sympathize with you. If there&#039;s a weak spot in my Python knowledge, it would be metaprogramming techniques including decorators and metaclasses. For a language that &quot;fits your brain&quot;, these two techniques are definitely outliers.</description>
		<content:encoded><![CDATA[<p>Paulo, I sympathize with you. If there&#8217;s a weak spot in my Python knowledge, it would be metaprogramming techniques including decorators and metaclasses. For a language that &#8220;fits your brain&#8221;, these two techniques are definitely outliers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

