<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Hone Watson Bookmarks &#187; python</title>
	<atom:link href="http://bookmarks.honewatson.com/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://bookmarks.honewatson.com</link>
	<description>I bring you the best from the web - random bookmarks.</description>
	<lastBuildDate>Tue, 31 Jan 2012 03:45:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bookmarks.honewatson.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Hone Watson Bookmarks &#187; python</title>
		<link>http://bookmarks.honewatson.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bookmarks.honewatson.com/osd.xml" title="Hone Watson Bookmarks" />
	<atom:link rel='hub' href='http://bookmarks.honewatson.com/?pushpress=hub'/>
		<item>
		<title>Python @staticmethod vs @classmethod</title>
		<link>http://bookmarks.honewatson.com/2010/04/21/python-staticmethod-vs-classmethod/</link>
		<comments>http://bookmarks.honewatson.com/2010/04/21/python-staticmethod-vs-classmethod/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 00:28:57 +0000</pubDate>
		<dc:creator>honewatson</dc:creator>
				<category><![CDATA[Python Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://bookmarks.honewatson.com/?p=420</guid>
		<description><![CDATA[Finally, a simple explanation of @staticmethod vs @classmethod. Check this guys description @staticmethod vs @classmethod python.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=420&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Finally, a simple explanation of @staticmethod vs @classmethod.</p>
<p><span id="more-420"></span></p>
<p>Check this guys description  <a href="http://rapd.wordpress.com/2008/07/02/python-staticmethod-vs-classmethod/">@staticmethod vs @classmethod python</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/honewatson.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/honewatson.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/honewatson.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/honewatson.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/honewatson.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/honewatson.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/honewatson.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/honewatson.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/honewatson.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/honewatson.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/honewatson.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/honewatson.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/honewatson.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/honewatson.wordpress.com/420/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=420&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bookmarks.honewatson.com/2010/04/21/python-staticmethod-vs-classmethod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4e9f5ca1121158385c9408cb2dafd03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">honewatson</media:title>
		</media:content>
	</item>
		<item>
		<title>Drupal 6 node.save services taxonomy xmlrpc php and python</title>
		<link>http://bookmarks.honewatson.com/2009/11/20/drupal-6-node-save-services-taxonomy-xmlrpc-php-and-python/</link>
		<comments>http://bookmarks.honewatson.com/2009/11/20/drupal-6-node-save-services-taxonomy-xmlrpc-php-and-python/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 00:54:43 +0000</pubDate>
		<dc:creator>honewatson</dc:creator>
				<category><![CDATA[Drupal Development]]></category>
		<category><![CDATA[Web Apps]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[xmlrpc]]></category>

		<guid isPermaLink="false">http://bookmarks.honewatson.com/2009/11/20/drupal-6-node-save-services-taxonomy-xmlrpc-php-and-python/</guid>
		<description><![CDATA[Drupal 6 node.save uses different methods for saving taxonomy for different taxonomy types. For multiple select based taxonomy: (php) $nodeObj-&#62;taxonomy = array(2=&#62;array(15,19)); (python) nodeOb['taxonomy']['2'] = [15,19] For tags based taxonomy: (php) $nodeObj-&#62;taxonomy = array( 'tags' =&#62; array( 2=&#62;'military,navy' ) );<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=405&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Drupal 6 node.save uses different methods for saving taxonomy for different taxonomy types.</p>
<p>For multiple select based taxonomy:</p>
<p>(php)</p>
<pre>
$nodeObj-&gt;taxonomy = array(2=&gt;array(15,19));
</pre>
<p>(python)</p>
<pre>
nodeOb['taxonomy']['2'] = [15,19]
</pre>
<p>For tags based taxonomy:</p>
<p>(php)</p>
<pre>
$nodeObj-&gt;taxonomy = array(
  'tags' =&gt; array(
         2=&gt;'military,navy'
   )
);
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/honewatson.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/honewatson.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/honewatson.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/honewatson.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/honewatson.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/honewatson.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/honewatson.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/honewatson.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/honewatson.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/honewatson.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/honewatson.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/honewatson.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/honewatson.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/honewatson.wordpress.com/405/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=405&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bookmarks.honewatson.com/2009/11/20/drupal-6-node-save-services-taxonomy-xmlrpc-php-and-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4e9f5ca1121158385c9408cb2dafd03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">honewatson</media:title>
		</media:content>
	</item>
		<item>
		<title>Trac configured with Nginx MySql Python SVN on Ubuntu</title>
		<link>http://bookmarks.honewatson.com/2009/09/01/trac-configured-with-nginx-mysql-python-svn-on-ubuntu/</link>
		<comments>http://bookmarks.honewatson.com/2009/09/01/trac-configured-with-nginx-mysql-python-svn-on-ubuntu/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 06:52:20 +0000</pubDate>
		<dc:creator>honewatson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[trac]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bookmarks.honewatson.com/2009/09/01/trac-configured-with-nginx-mysql-python-svn-on-ubuntu/</guid>
		<description><![CDATA[Assuming you&#8217;ve downloaded ./configure &#38;&#38; make &#38;&#38; make install the latest nginx and have mysql, svn already installed. More info on installing svn and setting up svn here. apt-get install trac apt-get install python-mysqldb Now once I&#8217;ll assume you&#8217;ve set up an svn repostitory in /home/svn/myproject. trac-admin /home/trac/myproject initenv #fill in details here assume project [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=392&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Assuming you&#8217;ve downloaded ./configure &amp;&amp; make &amp;&amp; make install the latest nginx and have mysql, svn already installed.   More info on installing svn and setting up <a href="http://bookmarks.honewatson.com/tag/svn/">svn here</a>.</p>
<p><span id="more-392"></span></p>
<pre>
apt-get install trac
apt-get install python-mysqldb
</pre>
<p>Now once I&#8217;ll assume you&#8217;ve set up an svn repostitory in /home/svn/myproject.</p>
<pre>
trac-admin /home/trac/myproject initenv #fill in details here assume project name is myproject
htdigest -c /home/trac/myproject.passwd myproject.com my_username
trac-admin /home/trac/myproject permission add my_username TRAC_ADMIN
chown -R www-data /home/trac/myproject
sudo -u www-data tracd -d -p 3110 --auth=myproject,/home/trac/myproject.passwd,myproject.com /home/trac/myproject
</pre>
<p>Now you have a tracd server daemonized.</p>
<p>Now add an nginx conf file in your nginx conf directory:</p>
<pre>
 upstream live_trachosts_com {
          server  127.0.0.1:3110;
  }

  server {
          listen          80;
          server_name     myproject.com;
          location / {
                rewrite ^/$ /myproject last;
                  proxy_pass      http://live_trachosts_com;
          }

  }
</pre>
<p>Now restart/reload Nginx.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/honewatson.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/honewatson.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/honewatson.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/honewatson.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/honewatson.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/honewatson.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/honewatson.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/honewatson.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/honewatson.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/honewatson.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/honewatson.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/honewatson.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/honewatson.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/honewatson.wordpress.com/392/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=392&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bookmarks.honewatson.com/2009/09/01/trac-configured-with-nginx-mysql-python-svn-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4e9f5ca1121158385c9408cb2dafd03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">honewatson</media:title>
		</media:content>
	</item>
		<item>
		<title>Python Gmail imaplib search subject get attachments</title>
		<link>http://bookmarks.honewatson.com/2009/08/11/python-gmail-imaplib-search-subject-get-attachments/</link>
		<comments>http://bookmarks.honewatson.com/2009/08/11/python-gmail-imaplib-search-subject-get-attachments/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 09:52:31 +0000</pubDate>
		<dc:creator>honewatson</dc:creator>
				<category><![CDATA[Google Apps]]></category>
		<category><![CDATA[Python Programming]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[Imaplib]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://bookmarks.honewatson.com/2009/08/11/python-gmail-imaplib-search-subject-get-attachments/</guid>
		<description><![CDATA[import email, getpass, imaplib, os detach_dir = '.' ### directory where to save attachments (default: current) m = imaplib.IMAP4_SSL('imap.gmail.com', 993) m.login('username@gmail.com','password') keywordsSearch = 'bananas oranges' searchString = "(ALL SUBJECT '%s')" % keywordsSearch ### m.search(None, "(ALL SUBJECT 'bananas oranges')") resp, items = m.search(None, searchString) items = items[0].split() for emailid in items: resp, data = m.fetch(emailid, "(RFC822)") [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=380&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="code">
<pre>
import email, getpass, imaplib, os

detach_dir = '.'

### directory where to save attachments (default: current)

m = imaplib.IMAP4_SSL('imap.gmail.com', 993)
m.login('username@gmail.com','password')
keywordsSearch = 'bananas oranges'
searchString = "(ALL SUBJECT '%s')" % keywordsSearch

### m.search(None, "(ALL SUBJECT 'bananas oranges')")
resp, items = m.search(None, searchString)
items = items[0].split()
for emailid in items:
    resp, data = m.fetch(emailid, "(RFC822)")
    email_body = data[0][1]
    mail = email.message_from_string(email_body)
    if mail.get_content_maintype() != 'multipart':
        continue
    print "["+mail["From"]+"] :" + mail["Subject"]
    for part in mail.walk():
        if part.get_content_maintype() == 'multipart':
            continue
        if part.get('Content-Disposition') is None:
            continue
        filename = part.get_filename()
        counter = 1
        if not filename:
            filename = 'part-%03d%s' % (counter, 'bin')
            counter += 1
        att_path = os.path.join(detach_dir, filename)
        if not os.path.isfile(att_path) :
            fp = open(att_path, 'wb')
            fp.write(part.get_payload(decode=True))
            fp.close()
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/honewatson.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/honewatson.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/honewatson.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/honewatson.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/honewatson.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/honewatson.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/honewatson.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/honewatson.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/honewatson.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/honewatson.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/honewatson.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/honewatson.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/honewatson.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/honewatson.wordpress.com/380/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=380&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bookmarks.honewatson.com/2009/08/11/python-gmail-imaplib-search-subject-get-attachments/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4e9f5ca1121158385c9408cb2dafd03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">honewatson</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8220;http post&#8221; with Python Multi Form</title>
		<link>http://bookmarks.honewatson.com/2008/11/12/http-post-with-python-multi-form/</link>
		<comments>http://bookmarks.honewatson.com/2008/11/12/http-post-with-python-multi-form/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 22:28:54 +0000</pubDate>
		<dc:creator>honewatson</dc:creator>
				<category><![CDATA[Python Programming]]></category>
		<category><![CDATA[Web Apps]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/11/12/http-post-with-python-multi-form/</guid>
		<description><![CDATA[Multi form &#8220;http post&#8221; with python. Canonical Python Http Post Multi part form data. With Unicode Comprehensive examples<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=339&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Multi form &#8220;http post&#8221; with python.</p>
<p><span id="more-339"></span></p>
<ul>
<li><a href="http://www.russellbeattie.com/blog/is-this-a-canonical-python-http-post-with-basic-authentication">Canonical Python Http Post</a></li>
<li><a href="http://code.activestate.com/recipes/146306/">Multi part form data.</a></li>
<li><a href="http://peerit.blogspot.com/2007/07/multipartposthandler-doesnt-work-for.html">With Unicode</a></li>
<li><a href="http://bitworking.org/projects/httplib2/ref/httplib2-example.html">Comprehensive examples</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/honewatson.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/honewatson.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/honewatson.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/honewatson.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/honewatson.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/honewatson.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/honewatson.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/honewatson.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/honewatson.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/honewatson.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/honewatson.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/honewatson.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/honewatson.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/honewatson.wordpress.com/339/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=339&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bookmarks.honewatson.com/2008/11/12/http-post-with-python-multi-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4e9f5ca1121158385c9408cb2dafd03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">honewatson</media:title>
		</media:content>
	</item>
		<item>
		<title>Limit a list iteration in python for loop</title>
		<link>http://bookmarks.honewatson.com/2008/06/03/limit-a-list-iteration-in-python-for-loop/</link>
		<comments>http://bookmarks.honewatson.com/2008/06/03/limit-a-list-iteration-in-python-for-loop/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 01:58:26 +0000</pubDate>
		<dc:creator>honewatson</dc:creator>
				<category><![CDATA[Python Programming]]></category>
		<category><![CDATA[Web Apps]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/06/03/limit-a-list-iteration-in-python-for-loop/</guid>
		<description><![CDATA[If you want to set a limit when you iterate a list in python slice it up by doing this: for i in list[0:6]: print i This will list the first 5 items.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=310&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to set a limit when you iterate a list in python slice it up by doing this:</p>
<p class="code">
<code><br />
for i in list[0:6]:<br />
  print i<br />
</code>
</p>
<p>This will list the first 5 items.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/honewatson.wordpress.com/310/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/honewatson.wordpress.com/310/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/honewatson.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/honewatson.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/honewatson.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/honewatson.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/honewatson.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/honewatson.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/honewatson.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/honewatson.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/honewatson.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/honewatson.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/honewatson.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/honewatson.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/honewatson.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/honewatson.wordpress.com/310/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=310&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bookmarks.honewatson.com/2008/06/03/limit-a-list-iteration-in-python-for-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4e9f5ca1121158385c9408cb2dafd03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">honewatson</media:title>
		</media:content>
	</item>
		<item>
		<title>Xml, Html Special Characters Tidy Python App Engine</title>
		<link>http://bookmarks.honewatson.com/2008/05/30/xml-html-special-characters-tidy-python-app-engine/</link>
		<comments>http://bookmarks.honewatson.com/2008/05/30/xml-html-special-characters-tidy-python-app-engine/#comments</comments>
		<pubDate>Fri, 30 May 2008 04:21:48 +0000</pubDate>
		<dc:creator>honewatson</dc:creator>
				<category><![CDATA[App Engine]]></category>
		<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[Google Apps]]></category>
		<category><![CDATA[Python Programming]]></category>
		<category><![CDATA[Web Apps]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/05/30/xml-html-special-characters-tidy-python-app-engine/</guid>
		<description><![CDATA[You can&#8217;t use &#8216;tidy&#8217; python binding with App Engine as far as I know so use this for cleaning up your xml and html characters: import cgi string = str('I hate monkey &#38; hyena characters') cgi.escape(string) Should print out: I hate monkey &#38;amp; hyena characters<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=309&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can&#8217;t use &#8216;tidy&#8217; python binding with App Engine as far as I know so use this for cleaning up your xml and html characters:</p>
<p class="code"><code><br />
import cgi<br />
string = str('I hate monkey &amp; hyena characters')<br />
cgi.escape(string)<br />
</code></p>
<p>Should print out:</p>
<p class="code"><code>I hate monkey &amp;amp; hyena characters</code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/honewatson.wordpress.com/309/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/honewatson.wordpress.com/309/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/honewatson.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/honewatson.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/honewatson.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/honewatson.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/honewatson.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/honewatson.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/honewatson.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/honewatson.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/honewatson.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/honewatson.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/honewatson.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/honewatson.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/honewatson.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/honewatson.wordpress.com/309/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=309&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bookmarks.honewatson.com/2008/05/30/xml-html-special-characters-tidy-python-app-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4e9f5ca1121158385c9408cb2dafd03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">honewatson</media:title>
		</media:content>
	</item>
		<item>
		<title>Content Type Mime Type &#8211; Headers for xml in Google App Engine</title>
		<link>http://bookmarks.honewatson.com/2008/05/29/content-type-mime-type-headers-for-xml-in-google-app-engine/</link>
		<comments>http://bookmarks.honewatson.com/2008/05/29/content-type-mime-type-headers-for-xml-in-google-app-engine/#comments</comments>
		<pubDate>Thu, 29 May 2008 00:43:56 +0000</pubDate>
		<dc:creator>honewatson</dc:creator>
				<category><![CDATA[App Engine]]></category>
		<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[Python Programming]]></category>
		<category><![CDATA[Web Apps]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/05/29/content-type-mime-type-headers-for-xml-in-google-app-engine/</guid>
		<description><![CDATA[If you want to change the content type or mime type for your Google App Engine template: self.response.headers['Content-Type'] = "application/xml" Full example: class MainPage(webapp.RequestHandler): def get(self): greetings_query = databasemodel.all() template_values = { 'greetings': greetings_query } self.response.headers['Content-Type'] = "application/xml" path = os.path.join(os.path.dirname(__file__), 'templates/index.xml') self.response.out.write(template.render(path, template_values))<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=308&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to change the content type or mime type for your Google App Engine template:</p>
<p class="code">
<code><br />
self.response.headers['Content-Type'] = "application/xml"<br />
</code>
</p>
<p>Full example:</p>
<p class="code">
<code><br />
class MainPage(webapp.RequestHandler):<br />
  def get(self):<br />
    greetings_query = databasemodel.all()</p>
<p>    template_values = {<br />
      'greetings': greetings_query<br />
      }<br />
    self.response.headers['Content-Type'] = "application/xml"<br />
    path = os.path.join(os.path.dirname(__file__), 'templates/index.xml')<br />
    self.response.out.write(template.render(path, template_values))<br />
</code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/honewatson.wordpress.com/308/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/honewatson.wordpress.com/308/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/honewatson.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/honewatson.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/honewatson.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/honewatson.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/honewatson.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/honewatson.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/honewatson.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/honewatson.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/honewatson.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/honewatson.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/honewatson.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/honewatson.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/honewatson.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/honewatson.wordpress.com/308/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=308&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bookmarks.honewatson.com/2008/05/29/content-type-mime-type-headers-for-xml-in-google-app-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4e9f5ca1121158385c9408cb2dafd03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">honewatson</media:title>
		</media:content>
	</item>
		<item>
		<title>Google App Engine SDK Nginx Proxy Pass proxy_pass Ubuntu</title>
		<link>http://bookmarks.honewatson.com/2008/05/28/google-app-engine-sdk-nginx-proxy-pass-proxy_pass-ubuntu/</link>
		<comments>http://bookmarks.honewatson.com/2008/05/28/google-app-engine-sdk-nginx-proxy-pass-proxy_pass-ubuntu/#comments</comments>
		<pubDate>Wed, 28 May 2008 08:53:38 +0000</pubDate>
		<dc:creator>honewatson</dc:creator>
				<category><![CDATA[App Engine]]></category>
		<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[Google Apps]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Python Programming]]></category>
		<category><![CDATA[Web Apps]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/05/28/google-app-engine-sdk-nginx-proxy-pass-proxy_pass-ubuntu/</guid>
		<description><![CDATA[Here&#8217;s a quick set up for Google App Engine&#8217;s SDK on Nginx. server { listen 80; server_name yourhotdomain.com; access_log logs/yourhotdomain.access.log; location / { proxy_pass http://localhost:8080; } } If you want to change the datastore location do this: sudo ./dev_appserver.py helloworld/ ctrl c cp /tmp/dev_appserver.datastore /some_new_path/dev_appserver.datastore sudo ./dev_appserver.py --datastore_path=/some_new_path/dev_appserver.datastore helloworld/ Your App Engine app should now [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=307&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick set up for Google App Engine&#8217;s SDK on Nginx.</p>
<p><span id="more-307"></span></p>
<p class="code">
<code><br />
server {<br />
listen       80;<br />
server_name  yourhotdomain.com;<br />
access_log  logs/yourhotdomain.access.log;<br />
location / {<br />
proxy_pass  http://localhost:8080;<br />
}<br />
}<br />
</code>
</p>
<p>If you want to change the datastore location do this:</p>
<p class="code">
<code><br />
sudo ./dev_appserver.py helloworld/<br />
ctrl c<br />
cp /tmp/dev_appserver.datastore /some_new_path/dev_appserver.datastore<br />
sudo ./dev_appserver.py --datastore_path=/some_new_path/dev_appserver.datastore helloworld/<br />
</code>
</p>
<p>Your App Engine app should now be running on &#8216;yourhotdomain.com&#8217;.</p>
<p>If you want to run it on your local computer just change your /etc/hosts file to include &#8216;yourhotdomain.com&#8217;</p>
<p class="code">
<code><br />
127.0.0.1      yourhotdomain.com	yourhotdomain.com<br />
</code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/honewatson.wordpress.com/307/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/honewatson.wordpress.com/307/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/honewatson.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/honewatson.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/honewatson.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/honewatson.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/honewatson.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/honewatson.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/honewatson.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/honewatson.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/honewatson.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/honewatson.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/honewatson.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/honewatson.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/honewatson.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/honewatson.wordpress.com/307/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=307&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bookmarks.honewatson.com/2008/05/28/google-app-engine-sdk-nginx-proxy-pass-proxy_pass-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4e9f5ca1121158385c9408cb2dafd03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">honewatson</media:title>
		</media:content>
	</item>
		<item>
		<title>Python List Compare Difference &#8211; Python Sets</title>
		<link>http://bookmarks.honewatson.com/2008/05/28/python-list-compare-difference-python-sets/</link>
		<comments>http://bookmarks.honewatson.com/2008/05/28/python-list-compare-difference-python-sets/#comments</comments>
		<pubDate>Wed, 28 May 2008 02:24:27 +0000</pubDate>
		<dc:creator>honewatson</dc:creator>
				<category><![CDATA[Python Programming]]></category>
		<category><![CDATA[Web Apps]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/05/28/python-list-compare-difference-python-sets/</guid>
		<description><![CDATA[One easy way to compare lists in python is to use Python Sets. """ NOTES: - requires Python 2.4 or greater - elements of the lists must be hashable - order of the original lists is not preserved """ def unique(a): """ return the list with duplicate elements removed """ return list(set(a)) def intersect(a, b): [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=306&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One easy way to compare lists in python is to use <a href="http://www.devshed.com/c/a/Python/Python-Sets/5/">Python Sets</a>.</p>
<p><span id="more-306"></span></p>
<p class="code">
<code><br />
""" NOTES:<br />
      - requires Python 2.4 or greater<br />
      - elements of the lists must be hashable<br />
      - order of the original lists is not preserved<br />
"""<br />
def unique(a):<br />
    """ return the list with duplicate elements removed """<br />
    return list(set(a))</p>
<p>def intersect(a, b):<br />
    """ return the intersection of two lists """<br />
    return list(set(a) &amp; set(b))</p>
<p>def union(a, b):<br />
    """ return the union of two lists """<br />
    return list(set(a) | set(b))</p>
<p>def difference(a, b):<br />
    """ show whats in list b which isn't in list a """<br />
    return list(set(b).difference(set(a))) </p>
<p></code>
</p>
<p>You can find differences, intersections, and unions of lists etc using sets.</p>
<p><a href="http://en.wikibooks.org/wiki/Python_Programming/Sets">Sets</a> are not indexed.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/honewatson.wordpress.com/306/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/honewatson.wordpress.com/306/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/honewatson.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/honewatson.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/honewatson.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/honewatson.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/honewatson.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/honewatson.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/honewatson.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/honewatson.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/honewatson.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/honewatson.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/honewatson.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/honewatson.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/honewatson.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/honewatson.wordpress.com/306/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bookmarks.honewatson.com&amp;blog=1388057&amp;post=306&amp;subd=honewatson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bookmarks.honewatson.com/2008/05/28/python-list-compare-difference-python-sets/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4e9f5ca1121158385c9408cb2dafd03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">honewatson</media:title>
		</media:content>
	</item>
	</channel>
</rss>
