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/2014-March/133598.html below:

[Python-Dev] cpython: inspect.Signature: Add 'Signature.from_callable' classmethod. Closes #17373

[Python-Dev] cpython: inspect.Signature: Add 'Signature.from_callable' classmethod. Closes #17373 [Python-Dev] cpython: inspect.Signature: Add 'Signature.from_callable' classmethod. Closes #17373Antoine Pitrou solipsis at pitrou.net
Thu Mar 27 17:48:16 CET 2014
On Thu, 27 Mar 2014 17:12:02 +0100 (CET)
yury.selivanov <python-checkins at python.org> wrote:
>  
> +    .. classmethod:: Signature.from_callable(obj)
> +
> +       Return a :class:`Signature` (or its subclass) object for a given callable
> +       ``obj``. This method simplifies subclassing of :class:`Signature`:
> +
> +       ::
> +
> +         class MySignature(Signature):
> +             pass
> +         sig = MySignature.from_callable(min)
> +         assert isinstance(sig, MySignature)
> +

This needs a "versionadded" tag.

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