Package paramiko :: Module channel :: Class ChannelFile
[show private | hide private]
[frames | no frames]

Type ChannelFile

  object --+    
           |    
BufferedFile --+
               |
              ChannelFile


A file-like wrapper around Channel. A ChannelFile is created by calling Channel.makefile and doesn't have the non-portable side effect of Channel.fileno.

Bug: To correctly emulate the file object created from a socket's makefile method, a Channel and its ChannelFile should be able to be closed or garbage-collected independently. Currently, closing the ChannelFile does nothing but flush the buffer.

Method Summary
  __init__(self, channel, mode, bufsize)
string __repr__(self)
Returns a string representation of this object, for debugging.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__repr__(self)
(Representation operator)

Returns a string representation of this object, for debugging.
Returns:
string
Overrides:
__builtin__.object.__repr__

Generated by Epydoc 2.1 on Fri Apr 23 15:55:49 2004 http://epydoc.sf.net