Did I find the right examples for you? yes no

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

        def unicode_or_none(item):
    if isinstance(item, text_type):
        return item
    try:
        return text_type(item)
    except:
        return None
        


src/p/y/pystreams-0.6/streams/stream.py   pystreams(Download)
from .iterators import seed, distinct, peek, accumulate, partly_distinct
from .poolofpools import PoolOfPools
from .utils import MaxHeapItem, filter_true, filter_false, value_mapper, \
    key_mapper, filter_keys, filter_values, make_list, int_or_none, \
    float_or_none, long_or_none, decimal_or_none, unicode_or_none