<?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: Get the current module in Python</title>
	<atom:link href="http://chenyufei.info/blog/2009-12-31/get-the-current-module-in-python/feed/" rel="self" type="application/rss+xml" />
	<link>http://chenyufei.info/blog/2009-12-31/get-the-current-module-in-python/</link>
	<description>Keep your head about you while all those are losing theirs</description>
	<lastBuildDate>Thu, 02 Sep 2010 03:31:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Solrex</title>
		<link>http://chenyufei.info/blog/2009-12-31/get-the-current-module-in-python/comment-page-1/#comment-706</link>
		<dc:creator>Solrex</dc:creator>
		<pubDate>Sat, 02 Jan 2010 04:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://chenyufei.info/blog/?p=290#comment-706</guid>
		<description>新年快乐！
我的博客地址由 .cn 变为 .org，有空的时候更新一下友情链接吧。</description>
		<content:encoded><![CDATA[<p>新年快乐！<br />
我的博客地址由 .cn 变为 .org，有空的时候更新一下友情链接吧。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GlacJAY</title>
		<link>http://chenyufei.info/blog/2009-12-31/get-the-current-module-in-python/comment-page-1/#comment-704</link>
		<dc:creator>GlacJAY</dc:creator>
		<pubDate>Thu, 31 Dec 2009 12:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://chenyufei.info/blog/?p=290#comment-704</guid>
		<description>我正想说呢，除了主模块外，__name__就行了。</description>
		<content:encoded><![CDATA[<p>我正想说呢，除了主模块外，__name__就行了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chenyufei</title>
		<link>http://chenyufei.info/blog/2009-12-31/get-the-current-module-in-python/comment-page-1/#comment-703</link>
		<dc:creator>chenyufei</dc:creator>
		<pubDate>Thu, 31 Dec 2009 10:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://chenyufei.info/blog/?p=290#comment-703</guid>
		<description>Yes. I just copied that solution without much thinking ...
&lt;a href=&quot;#comment-702&quot; rel=&quot;nofollow&quot;&gt;@E.T &lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Yes. I just copied that solution without much thinking &#8230;<br />
<a href="#comment-702" rel="nofollow">@E.T </a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: E.T</title>
		<link>http://chenyufei.info/blog/2009-12-31/get-the-current-module-in-python/comment-page-1/#comment-702</link>
		<dc:creator>E.T</dc:creator>
		<pubDate>Thu, 31 Dec 2009 08:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://chenyufei.info/blog/?p=290#comment-702</guid>
		<description>import sys
modname = globals()[&#039;__name__&#039;]  #can this line be omitted?

module = sys.modules[__name__] #we can use __name__ directly, right?</description>
		<content:encoded><![CDATA[<p>import sys<br />
modname = globals()['__name__']  #can this line be omitted?</p>
<p>module = sys.modules[__name__] #we can use __name__ directly, right?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
