<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:xhtml="http://www.w3.org/1999/xhtml">
    <title>Python __Underscore__ Methods - Recent Activity</title>
    <link href="http://www.siafoo.net/article/57/activity/feed" rel="self"/>
    <link href="http://www.siafoo.net//article/57/activity" rel="alternate"/>
    <id>tag:siafoo.net,2007-12-02:</id>
    <updated>2010-02-09T21:30:37.202815-08:00</updated>
    <generator uri="http://www.siafoo.net" version="r10">
        Siafoo
    </generator>
    <entry>
            <id>tag:siafoo.net,2010-02-09T21:30:37.202815-08:00:/article/57,version:12</id>
            <updated>2010-02-09T21:30:37.202815-08:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                <title>David edited the article“ Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                            <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                            Added some keywords.
                            <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="http://www.siafoo.net/article/57/diff?to=12&amp;from=11">diff</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-07-03T03:39:49.303375-07:00:/article/57,version:12</id>
            <updated>2008-07-03T03:39:49.303375-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                <title>David edited the article“ Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                            <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                            fix typo (__neg__ ==> __pos__)
                            <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="http://www.siafoo.net/article/57/diff?to=11&amp;from=10">diff</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-07-03T01:37:19.222794-07:00:/article/57,rating:51</id>
            <updated>2008-07-03T01:37:19.222794-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>Anonymous</name>
                <uri>http://www.siafoo.net/user/</uri>
            </author>
                <title>article “Python __Underscore__ Methods” was rated as a 5</title>
                <content type="xhtml">
                    <xhtml:div>
                        The new average is 3.00 of 5.0 with 3 ratings.
                        <xhtml:a class="action" href="/article/57?anchor=rating#rating">rate</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-07-03T01:33:37.152081-07:00:/article/57#comment_31,comment:31</id>
            <updated>2008-07-03T01:33:37.152081-07:00</updated>
            <link href="http://www.siafoo.net/article/57#comment_31"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                <title>David replied to a comment on the article “Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                        <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                        That's actually true... but that's assuming you have a superclass.  Perhaps I should have been clearer, but when I say 'if not present' I mean 'if not present anywhere in the class hierarchy'
                        <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="/article/57?reply_to_comment=31&amp;anchor=comment_31#comment_31">reply</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-07-03T01:32:19.016212-07:00:/article/57#comment_30,comment:30</id>
            <updated>2008-07-03T01:32:19.016212-07:00</updated>
            <link href="http://www.siafoo.net/article/57#comment_30"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                <title>David replied to a comment on the article “Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                        <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                        That's only for new-style classes actually.  I haven't written about __new__ yet, I'll add that part later.  Or feel free to.
                        <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="/article/57?reply_to_comment=30&amp;anchor=comment_30#comment_30">reply</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-07-03T01:30:34.146507-07:00:/article/57#comment_29,comment:29</id>
            <updated>2008-07-03T01:30:34.146507-07:00</updated>
            <link href="http://www.siafoo.net/article/57#comment_29"/>
            <author>
                <name>Stou S.</name>
                <uri>http://www.siafoo.net/user/stou</uri>
            </author>
                <title>Stou S. replied to a comment on the article “Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                        <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                        You know you can just edit the thing...
                        <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="/article/57?reply_to_comment=29&amp;anchor=comment_29#comment_29">reply</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-07-03T01:12:54.345418-07:00:/article/57,rating:50</id>
            <updated>2008-07-03T01:12:54.345418-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>Anonymous</name>
                <uri>http://www.siafoo.net/user/</uri>
            </author>
                <title>article “Python __Underscore__ Methods” was rated as a 0</title>
                <content type="xhtml">
                    <xhtml:div>
                        The new average is 3.00 of 5.0 with 3 ratings.
                        <xhtml:a class="action" href="/article/57?anchor=rating#rating">rate</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-07-03T01:12:29.344919-07:00:/article/57#comment_28,comment:28</id>
            <updated>2008-07-03T01:12:29.344919-07:00</updated>
            <link href="http://www.siafoo.net/article/57#comment_28"/>
            <author>
                <name>harry_hill</name>
                <uri>http://www.siafoo.net/user/harry_hill</uri>
            </author>
                <title>harry_hill commented on the article “Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                        <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                        Still in first section(!!!):"If not present, nothing is called and life goes on."NOOOO!!!!!If not present, an implicit call to the superclass's __init__ method is made.I didn't get beyond the first<a xmlns="http://www.w3.org/1999/xhtml" href="http://www.siafoo.net/article/57#comment_28">...<span class="limit_text_more"> more</span></a>
                        <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="/article/57?reply_to_comment=28&amp;anchor=comment_28#comment_28">reply</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-07-03T01:10:32.966297-07:00:/article/57#comment_27,comment:27</id>
            <updated>2008-07-03T01:10:32.966297-07:00</updated>
            <link href="http://www.siafoo.net/article/57#comment_27"/>
            <author>
                <name>harry_hill</name>
                <uri>http://www.siafoo.net/user/harry_hill</uri>
            </author>
                <title>harry_hill commented on the article “Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                        <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                        x.__init__(...) &amp;lt;!=&amp;gt; Class(...)- WHAT!? NO!!! Object instantiation implies a call to __new__ to do resource allocation. __init__ only sets initial state!Why did you write this if you have NO<a xmlns="http://www.w3.org/1999/xhtml" href="http://www.siafoo.net/article/57#comment_27">...<span class="limit_text_more"> more</span></a>
                        <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="/article/57?reply_to_comment=27&amp;anchor=comment_27#comment_27">reply</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-07-03T01:09:41.025776-07:00:/article/57#comment_26,comment:26</id>
            <updated>2008-07-03T01:09:41.025776-07:00</updated>
            <link href="http://www.siafoo.net/article/57#comment_26"/>
            <author>
                <name>harry_hill</name>
                <uri>http://www.siafoo.net/user/harry_hill</uri>
            </author>
                <title>harry_hill commented on the article “Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                        <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                        FAIL on 1st line!Class.__init__(...) &lt;==&gt; x.__init__(...)- NO!!! Calling a method on an instance passes self as an implicit first parameter.
                        <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="/article/57?reply_to_comment=26&amp;anchor=comment_26#comment_26">reply</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-07-01T16:19:32.708502-07:00:/article/57,version:12</id>
            <updated>2008-07-01T16:19:32.708502-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                <title>David edited the article“ Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                            <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                            Added some more methods to the ideas section
                            <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="http://www.siafoo.net/article/57/diff?to=10&amp;from=9">diff</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-06-28T16:09:30.288592-07:00:/article/57,version:12</id>
            <updated>2008-06-28T16:09:30.288592-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                <title>David edited the article“ Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                        <xhtml:a class="action" href="http://www.siafoo.net/article/57/diff?to=9&amp;from=8">diff</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-06-26T15:23:46.526019-07:00:/article/57,version:12</id>
            <updated>2008-06-26T15:23:46.526019-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                <title>David edited the article“ Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                            <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                            A few more methods defined, clarified and expanded on comparison operators
                            <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="http://www.siafoo.net/article/57/diff?to=8&amp;from=7">diff</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-06-25T01:54:08.785221-07:00:/article/57,version:12</id>
            <updated>2008-06-25T01:54:08.785221-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                <title>David edited the article“ Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                            <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                            More minor hash updates
                            <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="http://www.siafoo.net/article/57/diff?to=7&amp;from=6">diff</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-06-25T01:51:37.574872-07:00:/article/57,version:12</id>
            <updated>2008-06-25T01:51:37.574872-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                <title>David edited the article“ Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                            <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                            Updates to __hash__
                            <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="http://www.siafoo.net/article/57/diff?to=6&amp;from=5">diff</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-06-24T22:42:40.954802-07:00:/article/57,rating:46</id>
            <updated>2008-06-24T22:42:40.954802-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>Anonymous</name>
                <uri>http://www.siafoo.net/user/</uri>
            </author>
                <title>article “Python __Underscore__ Methods” was rated as a 4</title>
                <content type="xhtml">
                    <xhtml:div>
                        The new average is 3.00 of 5.0 with 3 ratings.
                        <xhtml:a class="action" href="/article/57?anchor=rating#rating">rate</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-06-24T22:42:28.405392-07:00:/article/57,version:12</id>
            <updated>2008-06-24T22:42:28.405392-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                <title>David edited the article“ Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                            <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                            Fixed reST error
                            <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="http://www.siafoo.net/article/57/diff?to=5&amp;from=4">diff</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-06-24T18:43:04.803524-07:00:/article/57,version:12</id>
            <updated>2008-06-24T18:43:04.803524-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                <title>David edited the article“ Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                            <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                            Added TOC, pickling infos
                            <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="http://www.siafoo.net/article/57/diff?to=4&amp;from=3">diff</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-06-24T02:54:30.572231-07:00:/article/57,version:12</id>
            <updated>2008-06-24T02:54:30.572231-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                <title>David edited the article“ Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                            <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                            Added some info on descriptors, cleaned up the intro
                            <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="http://www.siafoo.net/article/57/diff?to=3&amp;from=2">diff</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-06-18T22:20:59.319506-07:00:/article/57,version:12</id>
            <updated>2008-06-18T22:20:59.319506-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                <title>David edited the article“ Python __Underscore__ Methods”</title>
                <content type="xhtml">
                    <xhtml:div>
                            <xhtml:img src="/icons/quote_left_r10.png" alt="&#34;" style="padding-right: 0.5em;"/>
                            Ultra minor syntax error
                            <xhtml:img src="/icons/quote_right_r10.png" alt="&#34;" style="padding-left: 0.5em; padding-right: 1em;"/>
                        <xhtml:a class="action" href="http://www.siafoo.net/article/57/diff?to=2&amp;from=1">diff</xhtml:a>
                    </xhtml:div>
                </content>
    </entry><entry>
            <id>tag:siafoo.net,2008-06-18T22:04:13.747461-07:00:/article/57,</id>
            <updated>2008-06-18T22:04:13.747461-07:00</updated>
            <link href="http://www.siafoo.net/article/57"/>
            <author>
                <name>David</name>
                <uri>http://www.siafoo.net/user/david</uri>
            </author>
                   <title>David posted the article “Python __Underscore__ Methods”</title>
                   <content type="xhtml">
                       <xhtml:div>
                         <xhtml:em>Need to override an operator in your Python class?  Ever wonder what all those double-underscore class methods do?  Here's your answer.  Note that this is a work in progress, feel free to add to it<xhtml:a href="http://www.siafoo.net/article/57">...<xhtml:span class="limit_text_more"> more</xhtml:span></xhtml:a></xhtml:em>
                       </xhtml:div>
                   </content>
    </entry>
</feed>