Package horizons :: Package ext :: Module typing :: Class IO
[hide private]
[frames] | no frames]

Class IO

object --+        
         |        
   Generic --+    
             |    
    object --+    
             |    
 ??.Generic-22 --+
                 |
                IO
Known Subclasses:

Generic base class for TextIO and BinaryIO.

This is an abstract, generic version of the return of open().

NOTE: This does not distinguish between the different possible classes (text vs. binary, read vs. write vs. read/write, append-only, unbuffered). The TextIO and BinaryIO subclasses below capture the distinctions between text vs. binary, which is pervasive in the interface; however we currently do not offer a way to track the other distinctions in the type system.

Nested Classes [hide private]
    Inherited from Generic
  __metaclass__
Metaclass for generic types.
  __next_in_mro__
The most base type
Instance Methods [hide private]
 
__enter__(self)
 
__exit__(self, type, value, traceback)
 
close(self)
 
closed(self)
 
fileno(self)
 
flush(self)
 
isatty(self)
 
read(self, n=-1)
 
readable(self)
 
readline(self, limit=-1)
 
readlines(self, hint=-1)
 
seek(self, offset, whence=0)
 
seekable(self)
 
tell(self)
 
truncate(self, size=None)
 
writable(self)
 
write(self, s)
 
writelines(self, lines)
    Inherited from object
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
 
__format__(...)
default object formatter
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__hash__(x)
hash(x)
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__reduce__(...)
helper for pickle
 
__reduce_ex__(...)
helper for pickle
 
__repr__(x)
repr(x)
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
int
__sizeof__()
size of object in memory, in bytes
 
__str__(x)
str(x)
 
__subclasshook__(...)
Abstract classes can override this to customize issubclass().
Static Methods [hide private]
    Inherited from Generic
a new object with type S, a subtype of T
__new__(cls, *args, **kwds)
Class Variables [hide private]
  __abstractmethods__ = frozenset(['__enter__', '__exit__', 'clo...
  __origin__ = None
hash(x)

Inherited from unreachable.Generic: __parameters__

Inherited from unreachable.Generic (private): _abc_negative_cache_version

    Inherited from Generic
  __args__ = None
hash(x)
  __extra__ = None
hash(x)
  _abc_cache = <_weakrefset.WeakSet object at 0x7f63c747fad0>
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x7f63c74...
  _abc_registry = <_weakrefset.WeakSet object at 0x7f63c747fa90>
Properties [hide private]
  mode
  name
    Inherited from object
  __class__
the object's class
Class Variable Details [hide private]

__abstractmethods__

Value:
frozenset(['__enter__',
           '__exit__',
           'close',
           'closed',
           'fileno',
           'flush',
           'isatty',
           'mode',
...

Property Details [hide private]

mode

Get Method:
unreachable.mode(self)

name

Get Method:
unreachable.name(self)