diff options
author | David Warde-Farley <wardefar@iro.umontreal.ca> | 2012-12-13 17:40:00 -0500 |
---|---|---|
committer | David Warde-Farley <wardefar@iro.umontreal.ca> | 2012-12-13 17:40:00 -0500 |
commit | 783130c6c81dc096b47a0f44ef62872ab81da9f8 (patch) | |
tree | 27c4cb9d4ebef16edae7b2360a7f994d818134ac /numpy/doc/basics.py | |
parent | e5fce7847d58faf6eeaf4efb591e99977698d927 (diff) | |
download | numpy-783130c6c81dc096b47a0f44ef62872ab81da9f8.tar.gz |
BUG: Bubble errors from _tuple_of_integers.
Refactors _tuple_of_integers a little bit in order to propagate error
state. Zero indicates failure of the test (given tuple is not a tuple of
integers), whereas non-zero indicates either success (positive) or
an exception during the warning (negative). This allows us to use
(ret = _tuple_of_integers(...)) as an if condition, and then put the
error handling inside the if body.
Diffstat (limited to 'numpy/doc/basics.py')
0 files changed, 0 insertions, 0 deletions