xdrlib
index
/usr/local/lib/python2.5/xdrlib.py
Module Docs

Implements (a subset of) Sun XDR -- eXternal Data Representation.
 
See: RFC 1014

 
Modules
       
struct

 
Classes
       
exceptions.Exception(exceptions.BaseException)
Error
ConversionError
Packer
Unpacker

 
class ConversionError(Error)
    
Method resolution order:
ConversionError
Error
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods inherited from Error:
__init__(self, msg)
__repr__(self)
__str__(self)

Data descriptors inherited from Error:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x8125440>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message
exception message

 
class Error(exceptions.Exception)
    Exception class for this module. Use:
 
except xdrlib.Error, var:
    # var has the Error instance for the exception
 
Public ivars:
    msg -- contains the message
 
 
Method resolution order:
Error
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods defined here:
__init__(self, msg)
__repr__(self)
__str__(self)

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x8125440>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message
exception message

 
class Packer
    Pack various data representations into a buffer.
 
  Methods defined here:
__init__(self)
get_buf = get_buffer(self)
get_buffer(self)
pack_array(self, list, pack_item)
pack_bool(self, x)
pack_bytes = pack_string(self, s)
pack_double(self, x)
pack_enum = pack_uint(self, x)
pack_farray(self, n, list, pack_item)
pack_float(self, x)
pack_fopaque = pack_fstring(self, n, s)
pack_fstring(self, n, s)
pack_hyper = pack_uhyper(self, x)
pack_int = pack_uint(self, x)
pack_list(self, list, pack_item)
pack_opaque = pack_string(self, s)
pack_string(self, s)
pack_uhyper(self, x)
pack_uint(self, x)
reset(self)

 
class Unpacker
    Unpacks various data representations from the given buffer.
 
  Methods defined here:
__init__(self, data)
done(self)
get_buffer(self)
get_position(self)
reset(self, data)
set_position(self, position)
unpack_array(self, unpack_item)
unpack_bool(self)
unpack_bytes = unpack_string(self)
unpack_double(self)
unpack_enum = unpack_int(self)
unpack_farray(self, n, unpack_item)
unpack_float(self)
unpack_fopaque = unpack_fstring(self, n)
unpack_fstring(self, n)
unpack_hyper(self)
unpack_int(self)
unpack_list(self, unpack_item)
unpack_opaque = unpack_string(self)
unpack_string(self)
unpack_uhyper(self)
unpack_uint(self)

 
Data
        __all__ = ['Error', 'Packer', 'Unpacker', 'ConversionError']