RETIRED, further work has moved to Debian project infrastructure
Go to file
Aaron Iles 40efe21bd3 Enable coveralls code coverage reports
Successful TravisCI builds will publish code coverage reports to the
coveralls service for coverage reporting.
2013-05-29 23:31:33 +10:00
docs Update documentation with PyPy compatability 2013-01-07 21:58:49 +11:00
funcsigs Version increment to 0.3 2013-05-29 22:36:04 +10:00
requirements Enable coveralls code coverage reports 2013-05-29 23:31:33 +10:00
tests fix annotation formatting for builtin types in Python 2.x 2013-01-18 11:30:42 -05:00
.travis.yml Enable coveralls code coverage reports 2013-05-29 23:31:33 +10:00
CHANGELOG Update change log for next release 2013-05-29 22:35:35 +10:00
LICENSE Create project from touchstone project template 2013-01-06 13:12:00 +11:00
Makefile Upload distribution when registering to PyPI 2013-05-29 22:07:41 +10:00
MANIFEST.in Create project from touchstone project template 2013-01-06 13:12:00 +11:00
README.rst Update service badges for README 2013-05-29 22:34:46 +10:00
setup.py Discontinue use of distribute_setup.py 2013-05-29 22:07:41 +10:00

funcsigs

funcsigs is a backport of the PEP 362 function signature features from Python 3.3's inspect module. The backport is compatible with Python 2.6, 2.7 as well as 3.2 and up.

Latest PyPI version

Documentation

The reference documentation is standard library documentation for the inspect module in Python3. This documentation has been included in the funcsigs package documentation hosted on Read The Docs.

Example

To obtain a signature object, pass the target function to the funcsigs.signature function. :

>>> from funcsigs import signature
>>> def foo(a, b=None, *args, **kwargs):
...     pass

>>> sig = signature(foo)

For the details of the signature object, refer to the either the package of standard library documentation.

Compatability

The funcsigs backport has been tested against:

  • CPython 2.6
  • CPython 2.7
  • CPython 3.2
  • PyPy 1.9

Continuous integration testing is provided by Travis CI.

Under Python 2.x there is a compatability issue when a function is assigned to the __wrapped__ property of a class after it has been constructed. Similiarily there under PyPy directly passing the __call__ method of a builtin is also a compatability issues. Otherwise the functionality is believed to be uniform between both Python2 and Python3.

Issues

Source code for funcsigs is hosted on GitHub. Any bug reports or feature requests can be made using GitHub's issues system. Current build status

This is a derived work of CPython under the terms of the PSF License Agreement. The original CPython inspect module, its unit tests and documentation are the copyright of the Python Software Foundation. The derived work is distributed under the Apache License Version 2.0.