<?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>Learning is an Art &#187; Python</title>
	<atom:link href="http://www.singhvishwajeet.com/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.singhvishwajeet.com</link>
	<description>My experiences</description>
	<lastBuildDate>Thu, 10 Jun 2010 22:19:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Solving the build error Python.h: No such file or directory on Ubuntu</title>
		<link>http://www.singhvishwajeet.com/2009/09/16/solving-the-build-error-python-h-no-such-file-or-directory-on-ubuntu/</link>
		<comments>http://www.singhvishwajeet.com/2009/09/16/solving-the-build-error-python-h-no-such-file-or-directory-on-ubuntu/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 16:45:05 +0000</pubDate>
		<dc:creator>Vishwajeet Singh</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[python.h]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.singhvishwajeet.com/?p=172</guid>
		<description><![CDATA[ [...]]]></description>
			<content:encoded><![CDATA[<p>I was struggling due to this problem for two days now and got the solution just now so thought I will share it<br />
with you all; as I don&#8217;t want anyone else to land up in trouble as i did so I am using Hardy and was trying to build <a title="subvertpy" href="http://samba.org/~jelmer/subvertpy/" target="_blank">subvertpy</a> from source as the package was not available for same.</p>
<p>The problem occurs due to absence of Python development headers as many python modules have dependency on  Python development headers to compile.</p>
<p>Solution is to install development headers using package manager; open the terminal and issue the following commands</p>
<div class="codesnip-container" >sudo apt-cache search python</div>
<p>and select the package that matches your installation as in my case it is python2.5-dev; issue the following command to install it</p>
<div class="codesnip-container" >sudo apt-get install python2.5-dev</div>
<p>This will install development headers in /usr/include/python2.5 and now you can build your python module successfully.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.singhvishwajeet.com/2009/09/16/solving-the-build-error-python-h-no-such-file-or-directory-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Python Easter Eggs</title>
		<link>http://www.singhvishwajeet.com/2009/04/15/python-ester-eggs/</link>
		<comments>http://www.singhvishwajeet.com/2009/04/15/python-ester-eggs/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 17:25:29 +0000</pubDate>
		<dc:creator>Vishwajeet Singh</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[xkcd.com]]></category>

		<guid isPermaLink="false">http://www.singhvishwajeet.com/?p=73</guid>
		<description><![CDATA[ [...]]]></description>
			<content:encoded><![CDATA[<p>The Python interpreter contains few easter eggs which expresses sentiments of Python developer by and large I will listing them down if you know more kindly let me know</p>
<p>1. If you open a Python interpreter, and type
<div class="codesnip-container" >import this</div>
<p>, it outputs the following:</p>
<p><em>The Zen of Python, by Tim Peters</em></p>
<p><em>Beautiful is better than ugly.<br />
Explicit is better than implicit.<br />
Simple is better than complex.<br />
Complex is better than complicated.<br />
Flat is better than nested.<br />
Sparse is better than dense.<br />
Readability counts.<br />
Special cases aren&#8217;t special enough to break the rules.<br />
Although practicality beats purity.<br />
Errors should never pass silently.<br />
Unless explicitly silenced.<br />
In the face of ambiguity, refuse the temptation to guess.<br />
There should be one&#8211; and preferably only one &#8211;obvious way to do it.<br />
Although that way may not be obvious at first unless you&#8217;re Dutch.<br />
Now is better than never.<br />
Although never is often better than *right* now.<br />
If the implementation is hard to explain, it&#8217;s a bad idea.<br />
If the implementation is easy to explain, it may be a good idea.<br />
Namespaces are one honking great idea &#8212; let&#8217;s do more of those!</em></p>
<p>2. On python interpreter typing from __future__ import braces</p>
<p>it prints the output as follows <em>Traceback (SyntaxError: <strong>not a chance </strong>(&lt;interactive input&gt;, line 1)</em></p>
<p>3. On python interpreter type import __hello__</p>
<p>this outputs <em>Hello world&#8230;</em></p>
<p>Those were few easter eggs which were there in Python pre-3000 release</p>
<p>An <em>antigravity</em> module is added to Python 3.0. Importing the module opens a web browser to an <a title="Python xkcd" href="http://xkcd.com/353/" target="_blank">xkcd</a> comic that portrays Python having an antigravity module</p>
<p>Kindly let me know if you know any more easter eggs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.singhvishwajeet.com/2009/04/15/python-ester-eggs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
