<p>Is there any reason not to allow similar behaviour for True and False? i.e. True() == True</p>
<div class="gmail_quote">On Aug 7, 2011 3:39 PM, "Georg Brandl" <<a href="mailto:g.brandl@gmx.net">g.brandl@gmx.net</a>> wrote:<br type="attribution">> Well, I wouldn't use it for anything.<br>> <br>
> Georg<br>> <br>> Am 07.08.2011 15:07, schrieb Devin Jeanpierre:<br>>> Does it? What else would you use type(None) for? An isinstance() check?<br>>> <br>>> Devin<br>>> <br>>> On Sun, Aug 7, 2011 at 4:12 AM, Georg Brandl <<a href="mailto:g.brandl@gmx.net">g.brandl@gmx.net</a>> wrote:<br>
>>> Am 07.08.2011 01:34, schrieb <a href="mailto:dag.odenhall@gmail.com">dag.odenhall@gmail.com</a>:<br>>>>> On 29 July 2011 19:03, Guido van Rossum <<a href="mailto:guido@python.org">guido@python.org</a>> wrote:<br>
>>>>> I think it is fine if type(None)() returns None instead of raising an exception.<br>>>>><br>>>>> +1, I've often wanted it and felt (lambda: None) was somewhat clunky.<br>>>><br>
>>> It makes its intent much clearer than type(None) though.<br>>>><br>>>> Georg<br>>>><br>>>> _______________________________________________<br>>>> Python-ideas mailing list<br>
>>> <a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>>>> <a href="http://mail.python.org/mailman/listinfo/python-ideas">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
>>><br>> <br>> <br>> _______________________________________________<br>> Python-ideas mailing list<br>> <a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>> <a href="http://mail.python.org/mailman/listinfo/python-ideas">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
</div>