A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-June/120259.html below:

[Python-Dev] PEP 362 Third Revision

[Python-Dev] PEP 362 Third Revision [Python-Dev] PEP 362 Third RevisionAntoine Pitrou solipsis at pitrou.net
Thu Jun 14 22:53:37 CEST 2012
On Wed, 13 Jun 2012 22:52:43 -0400
Yury Selivanov <yselivanov.ml at gmail.com> wrote:
> * is_implemented : bool
>     True if the parameter is implemented for use.  Some platforms
>     implement functions but can't support specific parameters
>     (e.g. "mode" for ``os.mkdir``).  Passing in an unimplemented
>     parameter may result in the parameter being ignored,
>     or in NotImplementedError being raised.  It is intended that
>     all conditions where ``is_implemented`` may be False be
>     thoroughly documented.

I don't understand what the purpose of is_implemented is, or how it is
supposed to be computed.

> * bind(\*args, \*\*kwargs) -> BoundArguments
>     Creates a mapping from positional and keyword arguments to
>     parameters.  Raises a ``BindError`` (subclass of ``TypeError``)
>     if the passed arguments do not match the signature.

Why a dedicated exception class? TypeError is good enough, and the
proliferation of exception classes is a nuisance.

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4