From ae17d2c93dfac88cca9859d8b49490deb3991f41 Mon Sep 17 00:00:00 2001 From: Christoph Boeddeker Date: Sun, 13 Aug 2017 22:58:30 +0200 Subject: DOC: add example for isscalar on strings (#9361) --- numpy/core/numeric.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy/core/numeric.py') 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): -- cgit v1.2.1