On Sat, Jul 24, 2010 at 7:16 AM, Stefan Behnel <[email protected]> wrote:
> Robert Bradshaw, 09.07.2010 17:29:
>> For the moment, though, I'm wondering why we even bother letting
>> people declare the type as bool--it's not a very useful (Python) type
>> to statically declare, but can cause a lot of confusion.
>
> We have to take care not to break the 'bool' builtin, though, i.e. code
> like this must continue to work:
>
>     x = bool(obj)
>     assert isinstance(x, bool)

That would work just fine if bool is not a builtin type.

- Robert
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to