diff options
author | Christoph Boeddeker <boeddeker@users.noreply.github.com> | 2017-08-13 22:58:30 +0200 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-08-13 13:58:30 -0700 |
commit | ae17d2c93dfac88cca9859d8b49490deb3991f41 (patch) | |
tree | ea993396b5ec3252edb31aca32ce07ae01e044af /numpy/core/numeric.py | |
parent | 75545583a89647b810862076ae385a6c396e3eb0 (diff) | |
download | numpy-ae17d2c93dfac88cca9859d8b49490deb3991f41.tar.gz |
DOC: add example for isscalar on strings (#9361)
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index e9bb39ad4..ed350de7f 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -2159,6 +2159,8 @@ def isscalar(num): False >>> np.isscalar(False) True + >>> np.isscalar('numpy') + True """ if isinstance(num, generic): |