Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

        def is_scalar(maybe):
    '''Returns True if `maybe` is a string, an int, or some other scalar type
    (i.e not an iterable.)

    '''
    return is_string_like(maybe) or not is_iterable(maybe)
        


src/x/o/xoutil-1.5.4/xoutil/iterators.py   xoutil(Download)
 
from xoutil import Unset
from xoutil.types import is_scalar
from xoutil.deprecation import deprecated