1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-funcsigs
6 VARIANTS= py27 py35 py36
7 SDESC[py35]= Signature functions backport from 3.3 (PY 35)
8 SDESC[py36]= Signature functions backport from 3.3 (PY 36)
9 SDESC[py27]= Signature functions backport from 3.3 (PY 27)
10 HOMEPAGE= http://funcsigs.readthedocs.org
11 CONTACT= Python_Automaton[python@ironwolf.systems]
14 SITES[main]= PYPI/f/funcsigs
15 DISTFILE[1]= funcsigs-1.0.2.tar.gz:main
21 OPTIONS_AVAILABLE= PY27 PY35 PY36
22 OPTIONS_STANDARD= none
23 VOPTS[py35]= PY27=OFF PY35=ON PY36=OFF
24 VOPTS[py36]= PY27=OFF PY35=OFF PY36=ON
25 VOPTS[py27]= PY27=ON PY35=OFF PY36=OFF
27 DISTNAME= funcsigs-1.0.2
29 LICENSE= CUSTOM1:single
30 LICENSE_NAME= CUSTOM1:"ASL"
32 LICENSE_FILE= CUSTOM1:{{WRKSRC}}/LICENSE
36 [PY35].BUILDRUN_DEPENDS_ON= python-setuptools:single:py35
37 [PY35].USES_ON= python:py35
39 [PY36].BUILDRUN_DEPENDS_ON= python-setuptools:single:py36
40 [PY36].USES_ON= python:py36
42 [PY27].BUILDRUN_DEPENDS_ON= python-setuptools:single:py27
43 [PY27].USES_ON= python:py27
45 [FILE:2960:descriptions/desc.single]
46 .. funcsigs documentation master file, created by
47 sphinx-quickstart on Fri Apr 20 20:27:52 2012.
48 You can adapt this file completely to your liking, but it should at
50 contain the root `toctree` directive.
58 ``funcsigs`` is a backport of the `PEP 362`_ function signature features
60 Python 3.3's `inspect`_ module. The backport is compatible with Python
62 as well as 3.3 and up. 3.2 was supported by version 0.4, but with
64 pip no longer supporting 3.2, we cannot make any statement about 3.2
70 The ``funcsigs`` backport has been tested against:
78 * PyPy and PyPy3(currently failing CI)
80 Continuous integration testing is provided by `Travis CI`_.
82 Under Python 2.x there is a compatibility issue when a function is
84 the ``__wrapped__`` property of a class after it has been constructed.
85 Similiarily there under PyPy directly passing the ``__call__`` method of a
86 builtin is also a compatibility issues. Otherwise the functionality is
87 believed to be uniform between both Python2 and Python3.
92 Source code for ``funcsigs`` is hosted on `GitHub`_. Any bug reports or
94 requests can be made using GitHub's `issues system`_. |build_status|
100 To obtain a `Signature` object, pass the target function to the
101 ``funcsigs.signature`` function.
103 .. code-block:: python
105 >>> from funcsigs import signature
106 >>> def foo(a, b=None, *args, **kwargs):
109 >>> sig = signature(foo)
111 <funcsigs.Signature object at 0x...>
113 OrderedDict([('a', <Parameter at 0x... 'a'>), ('b', <Parameter at
114 0x... 'b'>), ('args', <Parameter at 0x... 'args'>), ('kwargs', <Parameter
115 at 0x... 'kwargs'>)])
116 >>> sig.return_annotation
117 <class 'funcsigs._empty'>
119 Introspecting callables with the Signature object
120 -------------------------------------------------
124 This section of documentation is a direct reproduction of the Python
125 standard library documentation for the inspect module.
127 The Signature object represents the call signature of a callable object
129 return annotation. To retrieve a Signature object, use the
133 .. function:: signature(callable)
135 Return a :class:`Signature` object for the given ``callable``::
137 >>> from funcsigs import signature
138 >>> def foo(a, *, b:int, **kwargs):
141 >>> sig = signature(foo)
144 '(a, *, b:int, **kwargs)'
146 >>> str(sig.parameters['b'])
149 >>> sig.parameters['b'].annotation
152 Accepts a wide range of python callables, from plain functions and
154 :func:`functools.partial` objects.
161 a7bb0f2cf3a3fd1ab2732cb49eba4252c2af4240442415b4abce3b87022a8f50 27947 funcsigs-1.0.2.tar.gz