<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Between designs</title>
	<atom:link href="http://www.brainfold.org/blog/2007/12/11/between-designs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brainfold.org/blog/2007/12/11/between-designs/</link>
	<description>On Python, game development and everything</description>
	<lastBuildDate>Fri, 21 May 2010 13:34:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jussi Lepistö</title>
		<link>http://www.brainfold.org/blog/2007/12/11/between-designs/comment-page-1/#comment-68</link>
		<dc:creator>Jussi Lepistö</dc:creator>
		<pubDate>Wed, 12 Dec 2007 09:18:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainfold.org/blog/2007/12/11/between-designs/#comment-68</guid>
		<description>Actually that&#039;s a lot like the first solution I talked about, with the addition of the addFeature method. But yea, that could work. Too many options for the design, and no clear flaws in any of them, at least that I can see yet. :)</description>
		<content:encoded><![CDATA[<p>Actually that&#8217;s a lot like the first solution I talked about, with the addition of the addFeature method. But yea, that could work. Too many options for the design, and no clear flaws in any of them, at least that I can see yet. <img src='http://www.brainfold.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver Charles</title>
		<link>http://www.brainfold.org/blog/2007/12/11/between-designs/comment-page-1/#comment-64</link>
		<dc:creator>Oliver Charles</dc:creator>
		<pubDate>Wed, 12 Dec 2007 01:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainfold.org/blog/2007/12/11/between-designs/#comment-64</guid>
		<description>Can you roll the two together? Python is a beuty for being so dynamic, so could you do something like:

class EntityContainerThingy:
    def __setattr__(self, attr, val):
        self.features[&#039;attr&#039;] = val

    def addFeature(self, feature):
        self.features[feature.__class__.name] = feature

Now I know that doesn&#039;t compile, and I can&#039;t remember the exact python syntax off by heart - but maybe that would provide a pretty cool solution?</description>
		<content:encoded><![CDATA[<p>Can you roll the two together? Python is a beuty for being so dynamic, so could you do something like:</p>
<p>class EntityContainerThingy:<br />
    def __setattr__(self, attr, val):<br />
        self.features['attr'] = val</p>
<p>    def addFeature(self, feature):<br />
        self.features[feature.__class__.name] = feature</p>
<p>Now I know that doesn&#8217;t compile, and I can&#8217;t remember the exact python syntax off by heart &#8211; but maybe that would provide a pretty cool solution?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
