[Python-Dev] PEP 362 Third Revision

Antoine Pitrou solipsis at pitrou.net
Fri Jun 15 23:51:46 CEST 2012


On Sat, 16 Jun 2012 07:48:19 +1000
Steven D'Aprano <steve at pearwood.info> wrote:
> 
> The introduction of BindError will allow functions to raise a more specific, 
> and less misleading, exception when they are called with the wrong number of 
> arguments, or invalid keywords, etc.

If that's what you want, a separate PEP is needed. Right now we are
talking about using it only in the context of PEP 362, where it is
not useful over a plain TypeError (bind() only binds, so there is no
possible confusion between different "kinds" of TypeErrors).

Regards

Antoine.




More information about the Python-Dev mailing list