Greg Ewing, 12.07.2010 10:34: > Stefan Behnel wrote: > >> My point was more why people currently don't run into it and why I think >> there is a difference to a boolean type. > > Well, it seems to me the reason people don't run into it > is just as likely to be simply that it never occurs to > anyone to try to type something as a Python int in the > first place. And, for the same reasons, they're not > likely to want to type anything as a Python bool either.
Ok, then we're back to this: """ we may consider *always* mapping 'bool' to the native boolean type in the target language. Python's 'bool' type is compatible with integers anyway, so we could map 'bool' to a 0/1 restricted bint in C and bool in C++ (assuming appropriate coercion semantics for C++/Python). """ Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
