<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: Python Singletons	</title>
	<atom:link href="https://www.robg3d.com/2012/11/python-singletons/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.robg3d.com/2012/11/python-singletons/</link>
	<description>Blog of Rob Galanakis (@robgalanakis)</description>
	<lastBuildDate>Wed, 21 Nov 2012 15:07:07 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.4.1</generator>
	<item>
		<title>
		By: Jason		</title>
		<link>https://www.robg3d.com/2012/11/python-singletons/#comment-50423</link>

		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Wed, 21 Nov 2012 15:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.robg3d.com/?p=1021#comment-50423</guid>

					<description><![CDATA[I struggled with this a bit, coming from Java I suppose.  I currently don&#039;t have any cases multiple instances would cause harm, but they would be pointless.  My answer is to design the class as I normally would then provide a module level instance as the default instance.

I do sometimes need a module level initialization function, if the class being used as a singleton requires some sort of configuration to be provided by the library user though.]]></description>
			<content:encoded><![CDATA[<p>I struggled with this a bit, coming from Java I suppose.  I currently don&#8217;t have any cases multiple instances would cause harm, but they would be pointless.  My answer is to design the class as I normally would then provide a module level instance as the default instance.</p>
<p>I do sometimes need a module level initialization function, if the class being used as a singleton requires some sort of configuration to be provided by the library user though.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Brian		</title>
		<link>https://www.robg3d.com/2012/11/python-singletons/#comment-50330</link>

		<dc:creator><![CDATA[Brian]]></dc:creator>
		<pubDate>Tue, 20 Nov 2012 04:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.robg3d.com/?p=1021#comment-50330</guid>

					<description><![CDATA[I gotta agree with Kay. 
I use modules when I want a singleton.
However, I like the tone of the article. 
If you really have to implement a singleton solution, make it a simple implementation. 
That goes for every language. 
I&#039;ve seen tons of terrible versions in C++. 
But any design in python that requires a singleton that I&#039;ve been presented with could be solved with the module as object pattern.]]></description>
			<content:encoded><![CDATA[<p>I gotta agree with Kay.<br />
I use modules when I want a singleton.<br />
However, I like the tone of the article.<br />
If you really have to implement a singleton solution, make it a simple implementation.<br />
That goes for every language.<br />
I&#8217;ve seen tons of terrible versions in C++.<br />
But any design in python that requires a singleton that I&#8217;ve been presented with could be solved with the module as object pattern.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Radomir		</title>
		<link>https://www.robg3d.com/2012/11/python-singletons/#comment-50231</link>

		<dc:creator><![CDATA[Radomir]]></dc:creator>
		<pubDate>Mon, 19 Nov 2012 09:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.robg3d.com/?p=1021#comment-50231</guid>

					<description><![CDATA[&lt;a href=&quot;#comment-50218&quot; rel=&quot;nofollow&quot;&gt;@Kay Hayen&lt;/a&gt;
It would be strange to use a module as a singleton with many mutable members. And performance of module lookup is noticeable lower.]]></description>
			<content:encoded><![CDATA[<p><a href="#comment-50218" rel="nofollow">@Kay Hayen</a><br />
It would be strange to use a module as a singleton with many mutable members. And performance of module lookup is noticeable lower.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kay Hayen		</title>
		<link>https://www.robg3d.com/2012/11/python-singletons/#comment-50218</link>

		<dc:creator><![CDATA[Kay Hayen]]></dc:creator>
		<pubDate>Mon, 19 Nov 2012 08:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.robg3d.com/?p=1021#comment-50218</guid>

					<description><![CDATA[Hi

Python has support for singletons as good as it gets: modules

Before anything else that is what they are. 

Yours Kay]]></description>
			<content:encoded><![CDATA[<p>Hi</p>
<p>Python has support for singletons as good as it gets: modules</p>
<p>Before anything else that is what they are. </p>
<p>Yours Kay</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
