<?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"
	>
<channel>
	<title>Comments on: Learning python by reinventing wheels &#8230;</title>
	<atom:link href="http://www.philhassey.com/blog/2008/06/11/learning-python-by-reinventing-wheels/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.philhassey.com/blog/2008/06/11/learning-python-by-reinventing-wheels/</link>
	<description>games, tech, web, stuff, biz, and bilge</description>
	<pubDate>Wed, 03 Dec 2008 06:57:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Alan</title>
		<link>http://www.philhassey.com/blog/2008/06/11/learning-python-by-reinventing-wheels/#comment-4456</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Thu, 12 Jun 2008 22:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=116#comment-4456</guid>
		<description>@ rgz:

Now *that* is the best tip I've heard in ages</description>
		<content:encoded><![CDATA[<p>@ rgz:</p>
<p>Now *that* is the best tip I&#8217;ve heard in ages</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rgz</title>
		<link>http://www.philhassey.com/blog/2008/06/11/learning-python-by-reinventing-wheels/#comment-4423</link>
		<dc:creator>rgz</dc:creator>
		<pubDate>Thu, 12 Jun 2008 05:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/?p=116#comment-4423</guid>
		<description>Indeed and let me tell you something i do. Often i have this class with methods that make very intensive data loading and sorting; and also methods to use that data, which naturally I write after the first ones.

 So it happens often that i while i'm in ipython, i want to edit the display methods and test them without reloading the data.

 I tried pickling the data but pickle complained about it for some reason, so my only option was to edit the methods in place and while ipython is great, i prefer my editor, besides i want to store the code in case it, you know, works.

 So i type reload Module then foo.__class__ = Module.Foo and voila!  all the methods change but the instance variables remain the same so i don't have to reload the data!!</description>
		<content:encoded><![CDATA[<p>Indeed and let me tell you something i do. Often i have this class with methods that make very intensive data loading and sorting; and also methods to use that data, which naturally I write after the first ones.</p>
<p> So it happens often that i while i&#8217;m in ipython, i want to edit the display methods and test them without reloading the data.</p>
<p> I tried pickling the data but pickle complained about it for some reason, so my only option was to edit the methods in place and while ipython is great, i prefer my editor, besides i want to store the code in case it, you know, works.</p>
<p> So i type reload Module then foo.__class__ = Module.Foo and voila!  all the methods change but the instance variables remain the same so i don&#8217;t have to reload the data!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
