[Python-Dev] Argument Clinic: what to do with builtins with non-standard signatures?

Nick Coghlan ncoghlan at gmail.com
Sat Jan 25 16:16:49 CET 2014


On 25 January 2014 19:46, Stefan Behnel <stefan_ml at 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   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list