<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.1.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: sparta &#038; my ideal python/rdf api</title>
	<link>http://phildawes.net/blog/2004/10/25/sparta-my-ideal-pythonrdf-api/</link>
	<description>Mostly programming with a few bits of other stuff</description>
	<pubDate>Thu, 20 Nov 2008 21:58:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.1</generator>

	<item>
		<title>By: Ben</title>
		<link>http://phildawes.net/blog/2004/10/25/sparta-my-ideal-pythonrdf-api/#comment-40874</link>
		<author>Ben</author>
		<pubDate>Wed, 18 Jul 2007 02:29:16 +0000</pubDate>
		<guid>http://phildawes.net/blog/2004/10/25/sparta-my-ideal-pythonrdf-api/#comment-40874</guid>
					<description>This would seem to be a good match for descriptors... Make property a descriptor which checks maxCardinality, if it's 1 return the property, if it's more return a generator. The __set__ on the descriptor could take care of setting the property..
The only thing I can see which might cause problems is presenting a consistent API, i.e. how are you supposed to know that it's a generator as opposed to a value/object/whatever gets returned.</description>
		<content:encoded><![CDATA[<p>This would seem to be a good match for descriptors&#8230; Make property a descriptor which checks maxCardinality, if it&#8217;s 1 return the property, if it&#8217;s more return a generator. The __set__ on the descriptor could take care of setting the property..<br />
The only thing I can see which might cause problems is presenting a consistent API, i.e. how are you supposed to know that it&#8217;s a generator as opposed to a value/object/whatever gets returned.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
