<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" 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><atom:link href="https://phildawesstuff.disqus.com/sparta_my_ideal_pythonrdf_api/latest.rss" rel="self"></atom:link><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>&lt;p&gt;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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boothead</dc:creator><pubDate>Tue, 17 Jul 2007 22:29:16 -0000</pubDate></item></channel></rss>