Hi, a noticed the underscore in "numpy.string_" ... I thought the underscores were removed in favour of handling the "from numpy import *" separately via the __all__ variable. Is this done only for *some* members of numpy ?
(sorry for hijacking your thread ...) -Sebastian Haase On Tuesday 03 October 2006 09:55, Francesc Altet wrote: > Hi, > > I thought that numpy.isscalar was a good way of distinguising a numpy > scalar > > from a python scalar, but it seems not: > >>> numpy.isscalar(numpy.string_('3')) > > True > > >>> numpy.isscalar('3') > > True > > Is there an easy (and fast, if possible) way to check whether an object is > a numpy scalar or a python one? > > Thanks, ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion