Closed madscatt closed 7 years ago
Perhaps add decorators for exception / logging handling.
There are many ways to do this using decorators and assertions but it is considered not-Pythonic to do so. Python 3.5 has bear types and there is a nice argument to use this module. That said, since we are striving for python 2.7 and 3.X co-compatiblity bear types aren't an option.
http://stackoverflow.com/questions/19684434/best-way-to-check-function-arguments-in-python
Therefore, I will not put in argument checking and take care of this in the doc strings.
also consider adding exception handling in some cases.