Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/a/s/astropy-0.3.1/astropy/io/fits/file.py   astropy(Download)
from numpy import memmap as Memmap
 
from .util import (isreadable, iswritable, isfile, fileobj_open, fileobj_name,
                   fileobj_closed, fileobj_mode, _array_from_file,
                   _array_to_file, _write_string, encode_ascii)
    def readable(self):
        if self.writeonly:
            return False
        return isreadable(self.__file)
 

src/a/s/astropy-0.3.1/astropy/io/fits/py3compat.py   astropy(Download)
 
    # Support the io.IOBase.readable/writable methods
    from .util import isreadable as _isreadable
 
    def isreadable(f):
        if hasattr(f, 'readable'):
            return f.readable()
        return _isreadable(f)

src/p/y/python-future-HEAD/docs/3rd-party-py3k-compat-code/astropy_py3compat.py   python-future(Download)
 
    # Support the io.IOBase.readable/writable methods
    from .util import isreadable as _isreadable
 
    def isreadable(f):
        if hasattr(f, 'readable'):
            return f.readable()
        return _isreadable(f)