<a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1600346&amp;group_id=5470&amp;atid=305470">http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1600346&amp;group_id=5470&amp;atid=305470</a><br>
<br>&quot;&quot;&quot;some notes:<br>
* the latex docs have been updated<br>
* the slot name was changed from nb_nonzero to nb_bool<br>
* all XXX_nonzero methods where changed to XXX_bool<br>
* all the comments relating to nb_nonzero have been updated<br>
* stdlib was updated<br>
* all the test suites were updated<br>
<br>
otoh, i couldn't get it to compile (MSVC++2003), because of a strange
<br>bug in ceval.c (none of my code). seems the GETLOCAL macro causes
<br>syntactic problems, but i didn't have time to check it thoroughly.&quot;&quot;&quot;<br><br><br>-tomer<br><br><div><span class="gmail_quote">On 11/21/06, <b class="gmail_sendername">Guido van Rossum</b> &lt;<a href="mailto:guido@python.org">
guido@python.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Looks about right. Patch?<br><br>On 11/20/06, tomer filiba &lt;
<a href="mailto:tomerfiliba@gmail.com">tomerfiliba@gmail.com</a>&gt; wrote:<br>&gt; how about changing the name of __nonzero__ to __bool__?<br>&gt;<br>&gt; today it looks like:<br>&gt; * int(x) --&gt; x.__int__()<br>&gt; * long(x) --&gt; x.__long__()
<br>&gt; * float(x) --&gt; x.__float__()<br>&gt; * str(x) --&gt; x.__str__()<br>&gt;<br>&gt; but for bool it's x.__nonzero__()<br>&gt;<br>&gt; i'd guess __nonzero__ existed even before the bool type was introduced<br>&gt; (
2.2?),<br>&gt; but in the cleanup-old-design-issues spirit, perhaps it can be made<br>&gt; symmetrical<br>&gt; to the other builtin types.<br>&gt;<br>&gt;<br>&gt; -tomer<br>&gt; _______________________________________________
<br>&gt; Python-3000 mailing list<br>&gt; <a href="mailto:Python-3000@python.org">Python-3000@python.org</a><br>&gt; <a href="http://mail.python.org/mailman/listinfo/python-3000">http://mail.python.org/mailman/listinfo/python-3000
</a><br>&gt; Unsubscribe:<br>&gt; <a href="http://mail.python.org/mailman/options/python-3000/guido%40python.org">http://mail.python.org/mailman/options/python-3000/guido%40python.org</a><br>&gt;<br>&gt;<br>&gt;<br><br><br>
--<br>--Guido van Rossum (home page: <a href="http://www.python.org/~guido/">http://www.python.org/~guido/</a>)<br></blockquote></div><br>