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

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

        is_datetime = lambda obj: isinstance(obj, datetime.__base__)
        


src/x/o/xoutil-1.5.4/xoutil/json.py   xoutil(Download)
    def default(self, o):
        from decimal import Decimal as _Decimal
        from xoutil.types import is_iterable
        from xoutil.datetime import (is_datetime as _is_datetime,
                                     new_datetime as _new_datetime,
                                     is_date as _is_date,
                                     new_date as __new_date,
                                     is_time as _is_time)
 
        if _is_datetime(o):