[Python-checkins] r75051 - in python/branches/py3k: Lib/test/test_range.py Objects/rangeobject.c

Mark Dickinson dickinsm at gmail.com
Fri Sep 25 16:27:23 CEST 2009


On Fri, Sep 25, 2009 at 2:57 PM, Jim Jewett <jimjjewett at gmail.com> wrote:
> On Fri, Sep 25, 2009 at 7:19 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
>> Mark Dickinson wrote:
>
>>> PyBool_CheckExact doesn't exist (as I was
>>> slightly surprised to learn).  PyBool_Check is
>>> already an exact check (judging from the source).
>
>> ... it also strikes me
>> as a bit of an odd quirk in the API).
>
> The quirk is that bool cannot be subclassed.

Aha.  That would certainly explain it.  :-)

Mark


More information about the Python-checkins mailing list