On 25 January 2014 19:46, Stefan Behnel <stefan...@behnel.de> wrote:
> FWIW, Cython knows a type called "bint" that is identical to a C int except
> that it automatically coerces to and from a Python boolean value (using
> truth testing). Seems to match the use case of the "p" that was added to
> CPython's arg parsing now. Given that "p" hasn't been around for all that
> long (and that Python didn't even have a bool type in its early days), it's
> clear why the existing code misused "i" in so many places over the last
> decades.
>
> I otherwise agree with Nick's comments above. It's sad that this can't just
> be fixed at the interface level, though.

We're building up a nice collection of edge cases to address in 3.5 -
it's getting to the point where I'm starting to think we should create
the 3.5 release PEP early so we can start making notes of things we've
decided we would like to do but are too late for 3.4...

Cheers,
Nick.

-- 
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to