[Python-checkins] cpython: Mention PEP 362: Function Signature Object in whatsnew.
andrew.svetlov
python-checkins at python.org
Mon Aug 13 20:28:07 CEST 2012
http://hg.python.org/cpython/rev/db96fe40de54
changeset: 78544:db96fe40de54
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Mon Aug 13 21:27:56 2012 +0300
summary:
Mention PEP 362: Function Signature Object in whatsnew.
files:
Doc/whatsnew/3.3.rst | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -501,6 +501,23 @@
consumption of programs creating many instances of non-builtin types.
+PEP 362: Function Signature Object
+==================================
+
+:pep:`362`: - Function Signature Object
+ PEP written by Brett Cannon, Yury Selivanov, Larry Hastings, Jiwon Seo.
+ Implemented by Yury Selivanov.
+
+A new function :func:`inspect.signature` makes introspection of python
+callables easy and straightforward. A broad range of callables is supported:
+python functions, decorated or not, classes, and :func:`functools.partial`
+objects. New classes :class:`inspect.Signature`, :class:`inspect.Parameter`
+and :class:`inspect.BoundArguments` hold information about the call signatures,
+such as, annotations, default values, parameters kinds, and bound arguments,
+which considerably simplifies writing decorators and any code that validates
+or amends calling signatures or arguments.
+
+
Using importlib as the Implementation of Import
===============================================
:issue:`2377` - Replace __import__ w/ importlib.__import__
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list