Module smbc :: Class File
[hide private]
[frames] | no frames]

Class File

object --+
         |
        File

SMBC File

A file object.

Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__iter__(x)
iter(x)
a new object with type S, a subtype of T
__new__(T, S, ...)
int
close()
Returns: on success, < 0 on error
tuple
fstat()
Returns: fstat information
 
lseek(offset, whence=0)
Returns: on success, current offset location, othwerwise -1
the next value, or raise StopIteration
next(x)
string
read(size)
Returns: read data
 
seek(offset, whence=0)
Returns: on success, current offset location, othwerwise -1
int
write(buf)
Returns: size of written

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

close()

 
Returns: int
on success, < 0 on error

fstat()

 
Returns: tuple
fstat information

lseek(offset, whence=0)

 
Returns:
on success, current offset location, othwerwise -1

read(size)

 
Parameters:
  • size (int) - size of reading
Returns: string
read data

seek(offset, whence=0)

 
Returns:
on success, current offset location, othwerwise -1

write(buf)

 
Parameters:
  • buf (string) - write data
Returns: int
size of written