<?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>jaux.net &#187; Python</title>
	<atom:link href="http://jaux.net/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://jaux.net</link>
	<description>Discovering this wonderful world...</description>
	<lastBuildDate>Fri, 06 Jan 2012 07:49:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title></title>
		<link>http://jaux.net/2011/11/15/gnu-make-errors-in-recipes/</link>
		<comments>http://jaux.net/2011/11/15/gnu-make-errors-in-recipes/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 17:15:42 +0000</pubDate>
		<dc:creator>jaux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://jaux.net/?p=593</guid>
		<description><![CDATA[Errors in Recipes I have seen a rule in Python&#8217;s Makefile The dash in front of the command is to let `make` never mind the return value of the command and continue executing the next command.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.gnu.org/s/make/manual/html_node/Errors.html#Errors" title="Errors in Recipes">Errors in Recipes</a></p>
<p>I have seen a rule in Python&#8217;s Makefile</p>
<pre class="brush: bash; title: ; notranslate">
-PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
    $(HOSTPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
    -d $(LIBDEST) -f \
    -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
    $(DESTDIR)$(LIBDEST)
</pre>
<p>The dash in front of the command is to let `make` never mind the return value of the command and continue executing the next command.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaux.net/2011/11/15/gnu-make-errors-in-recipes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://jaux.net/2011/09/28/porting-to-python3/</link>
		<comments>http://jaux.net/2011/09/28/porting-to-python3/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 17:07:47 +0000</pubDate>
		<dc:creator>jaux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://jaux.net/?p=553</guid>
		<description><![CDATA[Porting to Python 3: An in-depth guide It&#8217;s time to ride on Python 3!]]></description>
			<content:encoded><![CDATA[<p><a href="http://python3porting.com/" title="Porting to Python 3: An in-depth guide">Porting to Python 3: An in-depth guide</a></p>
<p>It&#8217;s time to ride on <a href="http://docs.python.org/py3k/">Python 3</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://jaux.net/2011/09/28/porting-to-python3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://jaux.net/2011/09/26/python-attributes-methods/</link>
		<comments>http://jaux.net/2011/09/26/python-attributes-methods/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 15:55:44 +0000</pubDate>
		<dc:creator>jaux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://jaux.net/?p=541</guid>
		<description><![CDATA[Python Attributes and Methods Now I know what descriptor is :D]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cafepy.com/article/python_attributes_and_methods/python_attributes_and_methods.html" title="Python Attributes and Methods">Python Attributes and Methods</a></p>
<p>Now I know what descriptor is :D</p>
]]></content:encoded>
			<wfw:commentRss>http://jaux.net/2011/09/26/python-attributes-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://jaux.net/2011/09/23/new-deprecation/</link>
		<comments>http://jaux.net/2011/09/23/new-deprecation/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 17:41:29 +0000</pubDate>
		<dc:creator>jaux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://jaux.net/?p=538</guid>
		<description><![CDATA[Guido&#8217;s Explanation on __new__ Deprecation Warning]]></description>
			<content:encoded><![CDATA[<p><a href="http://mail.python.org/pipermail/python-dev/2008-February/076854.html">Guido&#8217;s Explanation on __new__ Deprecation Warning</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jaux.net/2011/09/23/new-deprecation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://jaux.net/2011/09/15/gc-garbage/</link>
		<comments>http://jaux.net/2011/09/15/gc-garbage/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 19:35:33 +0000</pubDate>
		<dc:creator>jaux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Pylons]]></category>
		<category><![CDATA[Pyramid]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://jaux.net/?p=523</guid>
		<description><![CDATA[gc.garbage In my Pyramid view classes, I defined __del__(), and I guess there were reference cycle had been introduced inside the framework (which I couldn&#8217;t easily see), so all the view callable objects were not garbage collected.]]></description>
			<content:encoded><![CDATA[<p><a href="http://docs.python.org/library/gc.html#gc.garbage" title="gc.garbage">gc.garbage</a></p>
<p>In my <a href="https://docs.pylonsproject.org/docs/pyramid.html">Pyramid</a> view classes, I defined __del__(), and I guess there were reference cycle had been introduced inside the framework (which I couldn&#8217;t easily see), so all the view callable objects were not garbage collected.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaux.net/2011/09/15/gc-garbage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://jaux.net/2011/09/15/debugging-python-memory-leaks/</link>
		<comments>http://jaux.net/2011/09/15/debugging-python-memory-leaks/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 15:12:23 +0000</pubDate>
		<dc:creator>jaux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://jaux.net/?p=520</guid>
		<description><![CDATA[Debugging memory leaks A MUST read when investigating Python program memory problems!]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.python.org/~jeremy/weblog/030410.html" title="Debugging memory leaks">Debugging memory leaks</a></p>
<p>A MUST read when investigating <a href="http://python.org">Python</a> program memory problems!</p>
]]></content:encoded>
			<wfw:commentRss>http://jaux.net/2011/09/15/debugging-python-memory-leaks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQLite3: Unable to Open Database File</title>
		<link>http://jaux.net/2008/12/18/sqlite3-unable-to-open-database-file/</link>
		<comments>http://jaux.net/2008/12/18/sqlite3-unable-to-open-database-file/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 02:52:32 +0000</pubDate>
		<dc:creator>jaux</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[sqlite]]></category>

		<guid isPermaLink="false">http://jaux.net/?p=205</guid>
		<description><![CDATA[Recently, I&#8217;m working on my Skypiea project which is powered by SQLite3 and Python (as CGI script). Yesterday I encountered a program: When the web server ran a CGI script which would update the database, I got an error message &#8230; <a href="http://jaux.net/2008/12/18/sqlite3-unable-to-open-database-file/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently, I&#8217;m working on my <a href="http://jaux.net/my-works/project-skypiea/">Skypiea</a> project which is powered by SQLite3 and <a href="http://python.org">Python</a> (as CGI script). Yesterday I encountered a program: When the web server ran a CGI script which would update the database, I got an error message said &#8220;<strong>sqlite3.OperationalError: unable to open database file</strong>&#8220;.</p>
<p><a href="http://jaux.net/uploads/2008/12/sqlite.gif"><img src="http://jaux.net/uploads/2008/12/sqlite.gif" alt="" title="sqlite" width="327" height="97" class="aligncenter size-full wp-image-209" /></a></p>
<p>I searched the web and Google told me I need to specify <em>the <strong>full path</strong> (no ~ or $HOME etc.) of the database file</em> and the <em>web server needs the <strong>write permission</strong> to the file</em>. Sure, I actually had done both before the exception occurred.</p>
<p>Having being pissed for a while, I finally figured out what was wrong here: The web server needs the write permission to not only the database file, but also <em><strong>the containing directory</strong></em> of that file.</p>
<p>Yea, just simple like that.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaux.net/2008/12/18/sqlite3-unable-to-open-database-file/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Simple Weather Script for Conky</title>
		<link>http://jaux.net/2008/12/13/weather-script-for-conky/</link>
		<comments>http://jaux.net/2008/12/13/weather-script-for-conky/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 06:32:10 +0000</pubDate>
		<dc:creator>jaux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[yahoo_weather_script]]></category>

		<guid isPermaLink="false">http://jaux.net/?p=183</guid>
		<description><![CDATA[Wanna Conky to show your local weather? You might had found tons of solutions already on the web, but here comes a simpler one: SimpleWeather. Requirement: Python >= 2.5 How to use it: Download weather.py. Edit the file, fill in &#8230; <a href="http://jaux.net/2008/12/13/weather-script-for-conky/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wanna <a href="http://conky.sourceforge.net/">Conky</a> to show your local weather? You might had found tons of solutions already on the web, but here comes a simpler one: <strong><a href="http://github.com/jaux/simpleweather">SimpleWeather</a></strong>.</p>
<h3>Requirement:</h3>
<ul>
<li><a href="http://python.org">Python</a> >= 2.5</li>
</ul>
<h3>How to use it:</h3>
<ol>
<li><a href="http://github.com/jaux/simpleweather">Download weather.py</a>.</li>
<li>Edit the file, fill in required parameters (read CONFIGURATION first).</li>
<li>Add ${execi 3600 python <i>the_path_to</i>/weahter.py} to your .conkyrc.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://jaux.net/2008/12/13/weather-script-for-conky/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows Vista: Install Python 2.6 for all users</title>
		<link>http://jaux.net/2008/10/02/windows-vista-install-python-26-for-all-users/</link>
		<comments>http://jaux.net/2008/10/02/windows-vista-install-python-26-for-all-users/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 23:19:59 +0000</pubDate>
		<dc:creator>jaux</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://jaux.net/?p=113</guid>
		<description><![CDATA[Python 2.6 final was release yesterday. If you are using Windows Vista and you want to install Python 2.6 for all users, but the &#8220;Vista Note&#8221; from the release page does not work for you, you may try this: Run &#8230; <a href="http://jaux.net/2008/10/02/windows-vista-install-python-26-for-all-users/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://jaux.net/uploads/2008/10/python-logo.png"><img src="http://jaux.net/uploads/2008/10/python-logo.png" alt="" title="python-logo" class="alignleft size-full wp-image-116" /></a>Python 2.6 final was release yesterday. If you are using Windows Vista and you want to install Python 2.6 for all users, but the &#8220;Vista Note&#8221; from the release page does not work for you, you may try this:</p>
<ol>
<li><strong>Run the command line program (cmd/powershell) as Administrator</strong> (right-click -> Run as Administrator), then issue the following command:</li>
<li><strong>msiexec /i <em>path_to_the_msi</em>\python-2.6.msi</strong></li>
</ol>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://jaux.net/2008/10/02/windows-vista-install-python-26-for-all-users/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

