<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Not My Idea -- Snippets &#187; python</title>
	<atom:link href="http://snippets.notmyidea.org/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://snippets.notmyidea.org</link>
	<description>Some code snippets about Linux / Php and Python</description>
	<lastBuildDate>Tue, 22 Dec 2009 13:06:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using bpython with django &#8211; another way</title>
		<link>http://snippets.notmyidea.org/2009/12/22/using-bpython-with-django/</link>
		<comments>http://snippets.notmyidea.org/2009/12/22/using-bpython-with-django/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 13:01:08 +0000</pubDate>
		<dc:creator>Alexis Métaireau</dc:creator>
				<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://snippets.notmyidea.org/?p=49</guid>
		<description><![CDATA[Lakshman wrotes up a nice article introducing bpython, and gives some tips to integrate it with django.
Unfortunatly, the tip laksman proposed can&#8217;t use additional parameters. Here is another way to use bpython, with django. It makes somes changes into the files of the framework (that some people &#8212; myself included &#8212; calls an ugly hack, [...]]]></description>
			<content:encoded><![CDATA[<p>Lakshman wrotes up <a href="http://uswaretech.com/blog/2009/12/using-bpython-shell-with-django-and-some-ipython-features-you-should-know/">a nice article introducing bpython</a>, and gives some tips to integrate it with django.</p>
<p>Unfortunatly, the tip laksman proposed can&#8217;t use additional parameters. Here is another way to use bpython, with django. It makes somes changes into the files of the framework (that some people &#8212; myself included &#8212; calls an <em>ugly hack</em>, but, it works the right way).</p>
<p> To run django shell with bpython, just enter</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">django shell --bpython</div></div>
<p>And you&#8217;re done.</p>
<p>Here is the patch:</p>
<div class="codecolorer-container diff vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:500px;"><div class="diff codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Index: shell.py<br />
===================================================================<br />
<span style="color: #888822;">--- shell.py&nbsp; &nbsp; <span style="">&#40;</span>révision <span style="">11821</span><span style="">&#41;</span></span><br />
<span style="color: #888822;">+++ shell.py&nbsp; &nbsp; <span style="">&#40;</span>copie de travail<span style="">&#41;</span></span><br />
<span style="color: #440088;">@@ -<span style="">6</span>,<span style="">8</span> +<span style="">6</span>,<span style="">12</span> @@</span><br />
&nbsp; &nbsp; &nbsp;option_list = NoArgsCommand.option_list + <span style="">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;make_option<span style="">&#40;</span>'--plain', action='store_true', dest='plain',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;help='Tells Django to use plain Python, not IPython.'<span style="">&#41;</span>,<br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp;make_option<span style="">&#40;</span>'--bpython', action='store_true', dest='bpython',</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;help='Tells Django to use the bpython interpreter, not IPython.'<span style="">&#41;</span>, &nbsp; &nbsp;</span><br />
&nbsp; &nbsp; &nbsp;<span style="">&#41;</span><br />
<span style="color: #991111;">- &nbsp; &nbsp;help = &quot;Runs a Python interactive interpreter. Tries to use IPython, if it's available.&quot;</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp;help = &quot;&quot;&quot;Runs a Python interactive interpreter. Tries to use IPython, if </span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp;it's available. Can use bpython with the --bpython option</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp;&quot;&quot;&quot;</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp;requires_model_validation = False<br />
&nbsp;<br />
<span style="color: #440088;">@@ -<span style="">18</span>,<span style="">16</span> +<span style="">22</span>,<span style="">22</span> @@</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;loaded_models = get_models<span style="">&#40;</span><span style="">&#41;</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;use_plain = options.get<span style="">&#40;</span>'plain', False<span style="">&#41;</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp;use_bpython = options.get<span style="">&#40;</span>'bpython', False<span style="">&#41;</span></span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;try:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if use_plain:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# Don't bother loading IPython, because the user wants plain Python.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;raise ImportError<br />
<span style="color: #991111;">- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;import IPython</span><br />
<span style="color: #991111;">- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# Explicitly pass an empty list as arguments, because otherwise IPython</span><br />
<span style="color: #991111;">- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# would use sys.argv from this script.</span><br />
<span style="color: #991111;">- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;shell = IPython.Shell.IPShell<span style="">&#40;</span>argv=<span style="">&#91;</span><span style="">&#93;</span><span style="">&#41;</span></span><br />
<span style="color: #991111;">- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;shell.mainloop<span style="">&#40;</span><span style="">&#41;</span></span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;elif use_bpython:</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# The user wants bpython</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from bpython.cli import main</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;main<span style="">&#40;</span>args=<span style="">&#91;</span><span style="">&#93;</span><span style="">&#41;</span></span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else:</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;import IPython</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# Explicitly pass an empty list as arguments, because otherwise IPython</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# would use sys.argv from this script.</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;shell = IPython.Shell.IPShell<span style="">&#40;</span>argv=<span style="">&#91;</span><span style="">&#93;</span><span style="">&#41;</span></span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;shell.mainloop<span style="">&#40;</span><span style="">&#41;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;except ImportError:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;import code<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# Set up a dictionary to serve as the environment for the shell, so</div></div>
<p>And the entire file (for django 1.1.1 and trunk):</p>
<div class="codecolorer-container python vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:500px;"><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span><br />
<span style="color: #ff7700;font-weight:bold;">from</span> django.<span style="color: black;">core</span>.<span style="color: black;">management</span>.<span style="color: black;">base</span> <span style="color: #ff7700;font-weight:bold;">import</span> NoArgsCommand<br />
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">optparse</span> <span style="color: #ff7700;font-weight:bold;">import</span> make_option<br />
<br />
<span style="color: #ff7700;font-weight:bold;">class</span> Command<span style="color: black;">&#40;</span>NoArgsCommand<span style="color: black;">&#41;</span>:<br />
&nbsp; &nbsp; option_list = NoArgsCommand.<span style="color: black;">option_list</span> + <span style="color: black;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; make_option<span style="color: black;">&#40;</span><span style="color: #483d8b;">'--plain'</span>, action=<span style="color: #483d8b;">'store_true'</span>, dest=<span style="color: #483d8b;">'plain'</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">help</span>=<span style="color: #483d8b;">'Tells Django to use plain Python, not IPython.'</span><span style="color: black;">&#41;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; make_option<span style="color: black;">&#40;</span><span style="color: #483d8b;">'--bpython'</span>, action=<span style="color: #483d8b;">'store_true'</span>, dest=<span style="color: #483d8b;">'bpython'</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">help</span>=<span style="color: #483d8b;">'Tells Django to use the bpython interpreter, not IPython.'</span><span style="color: black;">&#41;</span>, &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: black;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">help</span> = <span style="color: #483d8b;">&quot;&quot;&quot;Runs a Python interactive interpreter. Tries to use IPython, if <br />
&nbsp; &nbsp; it's available. Can use bpython with the --bpython option<br />
&nbsp; &nbsp; &quot;&quot;&quot;</span><br />
<br />
&nbsp; &nbsp; requires_model_validation = <span style="color: #008000;">False</span><br />
<br />
&nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">def</span> handle_noargs<span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, <span style="color: #66cc66;">**</span>options<span style="color: black;">&#41;</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># XXX: (Temporary) workaround for ticket #1796: force early loading of all</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># models from installed apps.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">from</span> django.<span style="color: black;">db</span>.<span style="color: black;">models</span>.<span style="color: black;">loading</span> <span style="color: #ff7700;font-weight:bold;">import</span> get_models<br />
&nbsp; &nbsp; &nbsp; &nbsp; loaded_models = get_models<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; use_plain = options.<span style="color: black;">get</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'plain'</span>, <span style="color: #008000;">False</span><span style="color: black;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; use_bpython = options.<span style="color: black;">get</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'bpython'</span>, <span style="color: #008000;">False</span><span style="color: black;">&#41;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">try</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">if</span> use_plain:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># Don't bother loading IPython, because the user wants plain Python.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">raise</span> <span style="color: #008000;">ImportError</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">elif</span> use_bpython:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># The user wants bpython</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">from</span> bpython.<span style="color: black;">cli</span> <span style="color: #ff7700;font-weight:bold;">import</span> main<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; main<span style="color: black;">&#40;</span>args=<span style="color: black;">&#91;</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">else</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">import</span> IPython<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># Explicitly pass an empty list as arguments, because otherwise IPython</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># would use sys.argv from this script.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shell = IPython.<span style="color: black;">Shell</span>.<span style="color: black;">IPShell</span><span style="color: black;">&#40;</span>argv=<span style="color: black;">&#91;</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shell.<span style="color: black;">mainloop</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">except</span> <span style="color: #008000;">ImportError</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">code</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># Set up a dictionary to serve as the environment for the shell, so</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># that tab completion works on objects that are imported at runtime.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># See ticket 5082.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imported_objects = <span style="color: black;">&#123;</span><span style="color: black;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">try</span>: <span style="color: #808080; font-style: italic;"># Try activating rlcompleter, because it's handy.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">readline</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">except</span> <span style="color: #008000;">ImportError</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">pass</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">else</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># We don't have to wrap the following import in a 'try', because</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># we already know 'readline' was imported successfully.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">rlcompleter</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #dc143c;">readline</span>.<span style="color: black;">set_completer</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">rlcompleter</span>.<span style="color: black;">Completer</span><span style="color: black;">&#40;</span>imported_objects<span style="color: black;">&#41;</span>.<span style="color: black;">complete</span><span style="color: black;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #dc143c;">readline</span>.<span style="color: black;">parse_and_bind</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;tab:complete&quot;</span><span style="color: black;">&#41;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># We want to honor both $PYTHONSTARTUP and .pythonrc.py, so follow system</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># conventions and get $PYTHONSTARTUP first then import user.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #ff7700;font-weight:bold;">not</span> use_plain: <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pythonrc = <span style="color: #dc143c;">os</span>.<span style="color: black;">environ</span>.<span style="color: black;">get</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;PYTHONSTARTUP&quot;</span><span style="color: black;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">if</span> pythonrc <span style="color: #ff7700;font-weight:bold;">and</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">isfile</span><span style="color: black;">&#40;</span>pythonrc<span style="color: black;">&#41;</span>: <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">try</span>: <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">execfile</span><span style="color: black;">&#40;</span>pythonrc<span style="color: black;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">except</span> <span style="color: #008000;">NameError</span>: <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">pass</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;"># This will import .pythonrc.py as a side-effect</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">user</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #dc143c;">code</span>.<span style="color: black;">interact</span><span style="color: black;">&#40;</span>local=imported_objects<span style="color: black;">&#41;</span></div></div>
<p>Hope it helps</p>
]]></content:encoded>
			<wfw:commentRss>http://snippets.notmyidea.org/2009/12/22/using-bpython-with-django/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

