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

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

            def isfileobj(f):
        return isinstance(f, file)

src/n/i/nibabel-1.3.0/nibabel/volumeutils.py   nibabel(Download)
import numpy as np
from .py3k import isfileobj, ZEROB
from .casting import (shared_range, type_info, as_int, best_float, OK_FLOATS,
        # for some types, we can write to the string buffer without
        # worrying, but others we can't. 
        if isfileobj(infile) or isinstance(infile, (gzip.GzipFile,
            arr.flags.writeable = True