1281274677274fe1d709aded64ffddddd8b3f8e3
pecan.util.getargspec
In lieu of decorators that responsibly duplicate the argspec of underlying functions, pecan must make a best guess. When multiple nested decorators are discovered, the __closure__ of the wrapped function is searched for callables (one of which likely represents the underlying wrapped function - the controller method itself). This change tweaks the algorithm a bit further to place higher match precedence on in-scope functions that have `self` as a first argument.
Pecan
A WSGI object-dispatching web framework, designed to be lean and fast with few dependencies.
Installing
$ pip install pecan
...or, for the latest (unstable) tip:
$ git clone https://github.com/pecan/pecan.git
$ cd pecan && python setup.py install
Running Tests
$ python setup.py test
...or, to run all tests across all supported environments:
$ pip install tox && tox
Viewing Documentation
Available online, or to build manually:
$ cd docs && make html
$ open docs/build/html/index.html
...or:
$ cd docs && make man
$ man docs/build/man/pecan.1
Contributing
For information on contributing to Pecan, please read our Contributing Guidelines.
Bugs should be reported at:
https://github.com/pecan/pecan/issues/new
Additional Help/Support
Most Pecan interaction is done via the pecan-dev Mailing List and the #pecanpy channel on FreeNode IRC.
Description
Languages
Python
99%
HTML
0.9%
CSS
0.1%
