<?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>Web Oom &#187; dictionary</title>
	<atom:link href="http://web.pyncus.com/tag/dictionary/feed/" rel="self" type="application/rss+xml" />
	<link>http://web.pyncus.com</link>
	<description>Build and Share Web Technology</description>
	<lastBuildDate>Mon, 25 Jan 2010 18:19:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>What is Python dictionary?</title>
		<link>http://web.pyncus.com/2009/08/02/what-is-python-dictionary/</link>
		<comments>http://web.pyncus.com/2009/08/02/what-is-python-dictionary/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 19:18:28 +0000</pubDate>
		<dc:creator>weboom</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[dictionary]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[value]]></category>

		<guid isPermaLink="false">http://weboom.wordpress.com/?p=393</guid>
		<description><![CDATA[If you don&#8217;t want to refer to the elements of a collection by their position number but prefer some other type of object as a key, use a python dictionary &#8212;&#8212;&#8212;&#8211; e.g., &#62;&#62;&#62; tel = {'jack': 4098, 'sape': 4139} &#62;&#62;&#62; tel['guido'] = 4127 &#62;&#62;&#62; tel {'sape': 4139, 'guido': 4127, 'jack': 4098} &#62;&#62;&#62; tel['jack'] 4098 &#62;&#62;&#62; <a href='http://web.pyncus.com/2009/08/02/what-is-python-dictionary/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t want to refer to the elements of a collection by their position number but prefer some other type of object as a key,</p>
<p>use a python dictionary</p>
<p>&#8212;&#8212;&#8212;&#8211;</p>
<p>e.g.,</p>
<pre><span>&gt;&gt;&gt; </span><span>tel</span> <span>=</span> <span>{</span><span>'jack'</span><span>:</span> <span>4098</span><span>,</span> <span>'sape'</span><span>:</span> <span>4139</span><span>}</span>
<span>&gt;&gt;&gt; </span><span>tel</span><span>[</span><span>'guido'</span><span>]</span> <span>=</span> <span>4127</span>
<span>&gt;&gt;&gt; </span><span>tel</span>
<span>{'sape': 4139, 'guido': 4127, 'jack': 4098}</span>
<span>&gt;&gt;&gt; </span><span>tel</span><span>[</span><span>'jack'</span><span>]</span>
<span>4098</span>
<span>&gt;&gt;&gt; </span><span>del</span> <span>tel</span><span>[</span><span>'sape'</span><span>]</span>
<span>&gt;&gt;&gt; </span><span>tel</span><span>[</span><span>'irv'</span><span>]</span> <span>=</span> <span>4127</span>
<span>&gt;&gt;&gt; </span><span>tel</span>
<span>{'guido': 4127, 'irv': 4127, 'jack': 4098}</span>
<span>&gt;&gt;&gt; </span><span>tel</span><span>.</span><span>keys</span><span>()</span>
<span>['guido', 'irv', 'jack']</span>
<span>&gt;&gt;&gt; </span><span>'guido'</span> <span>in</span> <span>tel</span>
<span>True</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://web.pyncus.com/2009/08/02/what-is-python-dictionary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>python dictionary access</title>
		<link>http://web.pyncus.com/2009/07/25/python-dictionary-access/</link>
		<comments>http://web.pyncus.com/2009/07/25/python-dictionary-access/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 13:00:54 +0000</pubDate>
		<dc:creator>weboom</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[dictionary]]></category>
		<category><![CDATA[dictionary access]]></category>

		<guid isPermaLink="false">http://weboom.wordpress.com/?p=247</guid>
		<description><![CDATA[use brackets e.g., request.GET['q']]]></description>
			<content:encoded><![CDATA[<p>use brackets</p>
<p>e.g.,</p>
<p>request.GET['q']</p>
]]></content:encoded>
			<wfw:commentRss>http://web.pyncus.com/2009/07/25/python-dictionary-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

