AndreaCensi / contracts

PyContracts is a Python package that allows to declare constraints on function parameters and return values. Contracts can be specified using Python3 annotations, or inside a docstring. PyContracts supports a basic type system, variables binding, arithmetic constraints, and has several specialized contracts and an extension API.
http://andreacensi.github.io/contracts/
Other
399 stars 61 forks source link

Abstracted decorated function argument parsing and related decorated fun... #35

Open pmacosta opened 9 years ago

pmacosta commented 9 years ago

Abstracted decorated function argument parsing and related decorated function processing and validation into a separate function. Results are cached for speed gains on multiple calls to the same decorated function