
<?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: Pythonic means idiomatic and tasteful</title>
	<atom:link href="http://www.pixelmonkey.org/2010/11/03/pythonic-means-idiomatic-and-tasteful/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pixelmonkey.org/2010/11/03/pythonic-means-idiomatic-and-tasteful?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pythonic-means-idiomatic-and-tasteful</link>
	<description>Andrew Montalenti&#039;s Blog</description>
	<lastBuildDate>Sun, 09 Jun 2013 21:38:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
	<item>
		<title>By: Andrew Taumoefolau</title>
		<link>http://www.pixelmonkey.org/2010/11/03/pythonic-means-idiomatic-and-tasteful/comment-page-1#comment-93264</link>
		<dc:creator>Andrew Taumoefolau</dc:creator>
		<pubDate>Tue, 16 Nov 2010 11:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelmonkey.org/?p=648#comment-93264</guid>
		<description><![CDATA[It&#039;s worth noting that the least Pythonic code example posted is in fact the fastest. It hurts, but sometimes it pays to leave well enough alone.]]></description>
		<content:encoded><![CDATA[<p>It&#8217;s worth noting that the least Pythonic code example posted is in fact the fastest. It hurts, but sometimes it pays to leave well enough alone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anon</title>
		<link>http://www.pixelmonkey.org/2010/11/03/pythonic-means-idiomatic-and-tasteful/comment-page-1#comment-92724</link>
		<dc:creator>Anon</dc:creator>
		<pubDate>Thu, 11 Nov 2010 18:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelmonkey.org/?p=648#comment-92724</guid>
		<description><![CDATA[Sometimes it takes time to come up with elegant solutions, but in a real world environment with deadlines, the &quot;ugly&quot; solution gets the job done, and that&#039;s enuff.]]></description>
		<content:encoded><![CDATA[<p>Sometimes it takes time to come up with elegant solutions, but in a real world environment with deadlines, the &#8220;ugly&#8221; solution gets the job done, and that&#8217;s enuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lzs</title>
		<link>http://www.pixelmonkey.org/2010/11/03/pythonic-means-idiomatic-and-tasteful/comment-page-1#comment-91758</link>
		<dc:creator>lzs</dc:creator>
		<pubDate>Fri, 05 Nov 2010 09:47:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelmonkey.org/?p=648#comment-91758</guid>
		<description><![CDATA[yet another function version:

    def encode_dict_items(dic, encoding=&#039;utf8&#039;, errors=&#039;ignore&#039;):
         return dict((k, v.encode(encoding, errors)) for k, v in dic.items())]]></description>
		<content:encoded><![CDATA[<p>yet another function version:</p>
<p>    def encode_dict_items(dic, encoding=&#8217;utf8&#8242;, errors=&#8217;ignore&#8217;):<br />
         return dict((k, v.encode(encoding, errors)) for k, v in dic.items())</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lzs</title>
		<link>http://www.pixelmonkey.org/2010/11/03/pythonic-means-idiomatic-and-tasteful/comment-page-1#comment-91755</link>
		<dc:creator>lzs</dc:creator>
		<pubDate>Fri, 05 Nov 2010 09:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelmonkey.org/?p=648#comment-91755</guid>
		<description><![CDATA[I&#039;ll write something like this:

class Dict(dict):
    def __setitem__(self, key, value):
          super(Dict, self).__setitem__(key, value.encode(&#039;utf8&#039;, &#039;ignore&#039;))]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ll write something like this:</p>
<p>class Dict(dict):<br />
    def __setitem__(self, key, value):<br />
          super(Dict, self).__setitem__(key, value.encode(&#8216;utf8&#8242;, &#8216;ignore&#8217;))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tm</title>
		<link>http://www.pixelmonkey.org/2010/11/03/pythonic-means-idiomatic-and-tasteful/comment-page-1#comment-91648</link>
		<dc:creator>tm</dc:creator>
		<pubDate>Thu, 04 Nov 2010 20:27:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelmonkey.org/?p=648#comment-91648</guid>
		<description><![CDATA[or how about implementing __iter__, so you can run dict on the item:

def __iter__(self): return iter([(key, item[key].encode(“utf-8″, “ignore”)) for key in (“title”, “summary”)])]]></description>
		<content:encoded><![CDATA[<p>or how about implementing __iter__, so you can run dict on the item:</p>
<p>def __iter__(self): return iter([(key, item[key].encode(“utf-8″, “ignore”)) for key in (“title”, “summary”)])</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tm</title>
		<link>http://www.pixelmonkey.org/2010/11/03/pythonic-means-idiomatic-and-tasteful/comment-page-1#comment-91647</link>
		<dc:creator>tm</dc:creator>
		<pubDate>Thu, 04 Nov 2010 20:17:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelmonkey.org/?p=648#comment-91647</guid>
		<description><![CDATA[unless i&#039;m missing something:

def encode_news_item(item):
    return dict([(key, item[key].encode(&quot;utf-8&quot;, &quot;ignore&quot;)) for key in (&quot;title&quot;, &quot;summary&quot;)])]]></description>
		<content:encoded><![CDATA[<p>unless i&#8217;m missing something:</p>
<p>def encode_news_item(item):<br />
    return dict([(key, item[key].encode(&#8220;utf-8&#8243;, &#8220;ignore&#8221;)) for key in (&#8220;title&#8221;, &#8220;summary&#8221;)])</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching using memcached
Object Caching 250/252 objects using memcached

Served from: _ @ 2013-06-18 16:09:02 -->