<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1600346&group_id=5470&atid=305470">http://sourceforge.net/tracker/index.php?func=detail&aid=1600346&group_id=5470&atid=305470</a><br>
<br>"""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."""<br><br><br>-tomer<br><br><div><span class="gmail_quote">On 11/21/06, <b class="gmail_sendername">Guido van Rossum</b> <<a href="mailto:guido@python.org">
guido@python.org</a>> 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 <
<a href="mailto:tomerfiliba@gmail.com">tomerfiliba@gmail.com</a>> wrote:<br>> how about changing the name of __nonzero__ to __bool__?<br>><br>> today it looks like:<br>> * int(x) --> x.__int__()<br>> * long(x) --> x.__long__()
<br>> * float(x) --> x.__float__()<br>> * str(x) --> x.__str__()<br>><br>> but for bool it's x.__nonzero__()<br>><br>> i'd guess __nonzero__ existed even before the bool type was introduced<br>> (
2.2?),<br>> but in the cleanup-old-design-issues spirit, perhaps it can be made<br>> symmetrical<br>> to the other builtin types.<br>><br>><br>> -tomer<br>> _______________________________________________
<br>> Python-3000 mailing list<br>> <a href="mailto:Python-3000@python.org">Python-3000@python.org</a><br>> <a href="http://mail.python.org/mailman/listinfo/python-3000">http://mail.python.org/mailman/listinfo/python-3000
</a><br>> Unsubscribe:<br>> <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>><br>><br>><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>