Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
list() -> new empty list
list(iterable) -> new list initialized from iterable's items

src/w/h/whiff-1.1/whiff/middleware/misc.py   whiff(Download)
    def deliver_page(self, string_or_page, env, start_response, default_mime="text/html"):
        pt = type(string_or_page)
        if pt in whiffenv.JSON_TYPES:
            string_or_page = jsonParse.format(string_or_page)
            pt = type(string_or_page)
def streamOrDataToData(thing, env, start_response=ignore):
    "if a value is a known json type, leave it alone -- otherwise try to eval as wsgi and parse json"
    # note: for these purposes strings are not treated as json types
    tt = type(thing)
    if tt in whiffenv.JSON_TYPES:

src/w/h/whiff-1.1/whiff/middleware/getResource.py   whiff(Download)
        as_json = self.param_json(self.as_json, env)
        resource_value = gateway.getResource(env, resourcePathList)
        if as_json or type(resource_value) in whiffenv.JSON_TYPES:
            return self.deliver_json(resource_value, env, start_response)
        else: