<?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>Adam Sherman &#187; Python</title>
	<atom:link href="http://www.sherman.ca/archives/category/software/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sherman.ca</link>
	<description>Mostly random thoughts on software, gear and the great outdoors.</description>
	<lastBuildDate>Fri, 06 Jan 2012 18:39:35 +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>Developer Position Open at Versature</title>
		<link>http://www.sherman.ca/archives/2011/12/05/developer-position-open-at-versature/</link>
		<comments>http://www.sherman.ca/archives/2011/12/05/developer-position-open-at-versature/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 21:11:03 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[J2EE]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[careers]]></category>

		<guid isPermaLink="false">http://www.sherman.ca/?p=301</guid>
		<description><![CDATA[Versature is hiring again. <a href="http://www.sherman.ca/archives/2011/12/05/developer-position-open-at-versature/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re hiring again at Versature, take a look:</p>

<p><a href="http://inside.versature.com/2011/12/developer-position-open/">Developer Position Open</a></p>

<p>It&#8217;s a software developer position that gets you working directly with me. Make sure to spread the word!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherman.ca/archives/2011/12/05/developer-position-open-at-versature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NullPosts: suds and appengine</title>
		<link>http://www.sherman.ca/archives/2011/08/04/nullposts-suds-and-appengine/</link>
		<comments>http://www.sherman.ca/archives/2011/08/04/nullposts-suds-and-appengine/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 00:01:32 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[gae]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.sherman.ca/?p=289</guid>
		<description><![CDATA[I ran into the issue described in NullPosts: suds and appengine today. This is caused by the great Python SOAP API, suds, and Google App Engine not playing together to do some of the restrictions in GAE. Thanks NullPosts!]]></description>
			<content:encoded><![CDATA[<p>I ran into the issue described in <a href="http://omiethenull.blogspot.com/2010/08/suds-and-appengine.html">NullPosts: suds and appengine</a> today. This is caused by the great <a href="http://www.python.org">Python</a> <a href="http://en.wikipedia.org/wiki/SOAP">SOAP</a> API, <a href="https://fedorahosted.org/suds/">suds</a>, and <a href="http://code.google.com/appengine/">Google App Engine</a> not playing together to do some of the restrictions in GAE. Thanks <a href="http://omiethenull.blogspot.com/">NullPosts</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherman.ca/archives/2011/08/04/nullposts-suds-and-appengine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google App Engine&#8217;s Python Exception Syntax</title>
		<link>http://www.sherman.ca/archives/2011/08/04/gae-python-exception-syntax/</link>
		<comments>http://www.sherman.ca/archives/2011/08/04/gae-python-exception-syntax/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 19:39:46 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[gae]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.sherman.ca/?p=285</guid>
		<description><![CDATA[Remember, Python 2.5 has this exception syntax: try: raise FooException("Darn!") except FooException, e print("Error: %s" % e) The newer syntax is: try: raise FooException("Darn!") except FooException as e print("Error: %s" % e) I ran into this when uploading an application &#8230; <a href="http://www.sherman.ca/archives/2011/08/04/gae-python-exception-syntax/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Remember, <a href="http://docs.python.org/release/2.5.4/tut/node10.html#SECTION0010300000000000000000">Python 2.5</a> has this exception syntax:
<pre>try:
    raise FooException("Darn!")
except FooException, e
    print("Error: %s" % e)</pre>
The <a href="http://docs.python.org/reference/compound_stmts.html#the-try-statement">newer syntax</a> is:
<pre>try:
    raise FooException("Darn!")
except FooException as e
    print("Error: %s" % e)</pre>
I ran into this when uploading an application to <a title="Google App Engine" href="http://code.google.com/appengine/">Google App Engine</a>, which then produced this cryptic error:
<pre>&lt;type 'exceptions.SyntaxError'&gt;: invalid syntax (main.py, line 64)</pre>
Where line 64 is the line containing the not-yet-implemented <strong>as</strong> keyword.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherman.ca/archives/2011/08/04/gae-python-exception-syntax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X 10.7 &#8220;Lion&#8221; Seems to Have a Broken Python easy_install</title>
		<link>http://www.sherman.ca/archives/2011/07/25/lion-broken-python-easy_install/</link>
		<comments>http://www.sherman.ca/archives/2011/07/25/lion-broken-python-easy_install/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 19:11:36 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.sherman.ca/?p=276</guid>
		<description><![CDATA[One of the first things I needed after upgrading to Mac OS X 10.7 (Lion) was to make some Python scripts work. However easy_install seemed to be broken: $ easy_install psycopg2 Traceback (most recent call last): File "/usr/local/bin/easy_install", line 5, &#8230; <a href="http://www.sherman.ca/archives/2011/07/25/lion-broken-python-easy_install/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the first things I needed after upgrading to <a href="http://www.apple.com/macosx/" target="_blank">Mac OS X 10.7 (Lion)</a> was to make some Python scripts work. However easy_install seemed to be broken:
<pre>$ easy_install psycopg2
Traceback (most recent call last):
  File "/usr/local/bin/easy_install", line 5, in &lt;module&gt;
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2607, in &lt;module&gt;
    parse_requirements(<strong>requires</strong>), Environment()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: setuptools==0.6c12dev-r88795</pre>
I fixed this by installing <a href="http://packages.python.org/distribute/" target="_blank">Distribute</a> and then the new <a href="http://developer.apple.com/technologies/tools/" target="_blank">Mac OS X Developer Tools</a>.</p>

<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherman.ca/archives/2011/07/25/lion-broken-python-easy_install/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ReferenceField can not be searchable</title>
		<link>http://www.sherman.ca/archives/2004/10/05/referencefield-can-not-be-searchable/</link>
		<comments>http://www.sherman.ca/archives/2004/10/05/referencefield-can-not-be-searchable/#comments</comments>
		<pubDate>Tue, 05 Oct 2004 15:57:50 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.sherman.ca/2004/10/05/referencefield-can-not-be-searchable/</guid>
		<description><![CDATA[Under Archectypes 1.3 (final), I had a ReferenceField setup with searchable=True and this caused a TypeError when saving the object: Traceback (innermost last): Module ZPublisher.Publish, line 100, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in &#8230; <a href="http://www.sherman.ca/archives/2004/10/05/referencefield-can-not-be-searchable/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Under Archectypes 1.3 (final), I had a ReferenceField setup with <code>searchable=True</code> and this caused a TypeError when saving the object:</p>

<pre><code>Traceback (innermost last):
  Module ZPublisher.Publish, line 100, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Products.CMFFormController.FSControllerPageTemplate, line 98, in __call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line 39, in _call
  Module Products.CMFFormController.ControllerBase, line 191, in getNext
  Module Products.CMFFormController.Actions.TraverseTo, line 36, in __call__
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Products.CMFFormController.FSControllerPythonScript, line 105, in __call__
  Module Products.CMFFormController.Script, line 141, in __call__
  Module Products.CMFCore.FSPythonScript, line 104, in __call__
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 160, in _exec
  Module None, line 11, in content_edit
   - &lt;fscontrollerpythonscript at /plone1/content_edit used for /plone1/organization.2004-10-04.8620291094&gt;
   - Line 11
  Module Products.Archetypes.BaseObject, line 573, in processForm
  Module Products.Archetypes.BaseObject, line 566, in _processForm
   - __traceback_info__: (&lt;organization at /plone1/organization.2004-10-04.8620291094&gt;, &lt;field Notes(text:rw)&gt;, &lt;bound method Organization.setNotes of &lt;organization at /plone1/organization.2004-10-04.8620291094&gt;&gt;)
  Module Products.Archetypes.CatalogMultiplex, line 60, in reindexObject
  Module Products.CMFMember.CatalogTool, line 51, in catalog_object
  Module Products.ZCatalog.ZCatalog, line 513, in catalog_object
  Module Products.ZCatalog.Catalog, line 381, in catalogObject
  Module Products.ZCTextIndex.ZCTextIndex, line 163, in index_object
  Module Products.ZCTextIndex.ZCTextIndex, line 173, in _index_object
  Module Products.Archetypes.BaseObject, line 475, in SearchableText
  Module Products.Archetypes.BaseObject, line 475, in &lt;lambda&gt;
  Module Products.Archetypes.utils, line 276, in getValue
TypeError: DisplayList keys must be strings or ints, got &lt;extension class Acquisition.ImplicitAcquirerWrapper at 775140&gt;
</code></pre>

<p>The only reference to this that I&#8217;ve found is on the <a href="http://sourceforge.net/mailarchive/message.php?msg_id=9366143">list</a>. Setting <code>searchable=False</code> avoids the issue. I do not know if this is an actual bug.</p>

<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherman.ca/archives/2004/10/05/referencefield-can-not-be-searchable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Neural Nets in Python</title>
		<link>http://www.sherman.ca/archives/2004/06/18/neural-nets-in-python/</link>
		<comments>http://www.sherman.ca/archives/2004/06/18/neural-nets-in-python/#comments</comments>
		<pubDate>Fri, 18 Jun 2004 12:50:13 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.sherman.ca/2004/06/18/neural-nets-in-python/</guid>
		<description><![CDATA[Now I really need an excuse to play with this kind of thing. Weave a neural net with Python from IBM DeveloperWorks is very intriguing, now I need to understand it&#8230;]]></description>
			<content:encoded><![CDATA[<p>Now I really need an excuse to play with this kind of thing. <a href="http://www-106.ibm.com/developerworks/library/l-neurnet/?ca=dgr-lnxw06NeuralNet">Weave a neural net with Python</a> from IBM DeveloperWorks is very intriguing, now I need to understand it&#8230; <img src='http://www.sherman.ca/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherman.ca/archives/2004/06/18/neural-nets-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

