numpy.flexible

Here are the examples of the python api numpy.flexible taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: vsm Source File: types.py
Function: is_str
def isstr(x):
    """
    Returns True if `x` is an instance of a string.
    """
    return isinstance(x, basestring) or isinstance(x, np.flexible)