<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Phil Dawes' Stuff - Latest Comments in sparta &amp; my ideal python/rdf api</title><link>http://phildawesstuff.disqus.com/</link><description></description><language>en</language><lastBuildDate>Tue, 17 Jul 2007 22:29:16 -0000</lastBuildDate><item><title>Re: sparta &amp; my ideal python/rdf api</title><link>http://www.phildawes.net/blog/2004/10/25/sparta-my-ideal-pythonrdf-api/#comment-2752917</link><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..&lt;br&gt;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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ben</dc:creator><pubDate>Tue, 17 Jul 2007 22:29:16 -0000</pubDate></item></channel></rss>