Module Expr Str Import alias TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad body ImportFrom alias identifier Assign NameStore ListLoad Str Str Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpBitAnd BinOpRShift NameLoad Num Num Expr Call AttributeLoad NameLoad attr BinOpBitAnd NameLoad Num decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareLt NameLoad Num body Raise NameLoad Str Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore BinOpMult BinOpFloorDiv BinOpAdd NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad BinOpMult BinOpSub NameLoad Call NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareNotEq Call NameLoad NameLoad NameLoad body Raise NameLoad Str For NameStore NameLoad body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareLt AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameStore BinOpAdd NameLoad Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad NameLoad If CompareLt Call NameLoad NameLoad Num body Raise NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameStore BinOpAdd NameLoad Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad NameLoad If CompareLt Call NameLoad NameLoad Num body Raise NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Return BinOpBitOr BinOpLShift Call NameLoad NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareGtE NameLoad Num body Assign NameStore BinOpSub NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameStore BinOpAdd NameLoad Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad NameLoad If CompareLt Call NameLoad NameLoad Num body Raise NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameStore BinOpAdd NameLoad Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad NameLoad If CompareLt Call NameLoad NameLoad Num body Raise NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareLt NameLoad Num body Raise NameLoad Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad BinOpMult BinOpFloorDiv BinOpAdd NameLoad Num Num Num If CompareGt NameLoad Call NameLoad AttributeLoad NameLoad attr body Raise NameLoad Assign AttributeStore NameLoad attr NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad BinOpAdd NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad While Num body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Num body Break If CompareNotEq NameLoad Num body Raise NameLoad BinOpMod Str TupleLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A Implements (a subset of) Sun XDR -- eXternal Data Representation.

See: RFC 1014

 N/A struct N/A N/A cStringIO StringIO _StringIO N/A N/A N/A ImportError N/A StringIO StringIO _StringIO N/A __all__ N/A Error Packer Unpacker ConversionError Error N/A Exception N/A N/A Exception class for this module. Use:

    except xdrlib.Error, var:
        # var has the Error instance for the exception

    Public ivars:
        msg -- contains the message

     __init__ N/A N/A self msg N/A N/A N/A N/A self msg msg N/A __repr__ N/A N/A self N/A N/A N/A N/A repr N/A self msg N/A __str__ N/A N/A self N/A N/A N/A N/A str N/A self msg N/A N/A ConversionError N/A Error N/A N/A N/A Packer N/A N/A N/A Pack various data representations into a buffer. __init__ N/A N/A self N/A N/A N/A N/A N/A self reset N/A reset N/A N/A self N/A N/A N/A N/A self __buf N/A _StringIO N/A get_buffer N/A N/A self N/A N/A N/A N/A N/A N/A self __buf getvalue N/A N/A get_buf get_buffer pack_uint N/A N/A self x N/A N/A N/A N/A N/A N/A self __buf write N/A N/A struct pack >L x N/A pack_int N/A N/A self x N/A N/A N/A N/A N/A N/A self __buf write N/A N/A struct pack >l x N/A N/A pack_enum pack_int pack_bool N/A N/A self x N/A N/A N/A x N/A N/A N/A N/A N/A self __buf write N/A N/A N/A N/A N/A self __buf write N/A pack_uhyper N/A N/A self x N/A N/A N/A N/A N/A self pack_uint N/A N/A x 32 4294967295 N/A N/A N/A self pack_uint N/A x 4294967295 N/A N/A pack_hyper pack_uhyper pack_float N/A N/A self x N/A N/A N/A N/A N/A N/A N/A N/A self __buf write N/A N/A struct pack >f x N/A N/A N/A N/A struct error N/A msg N/A N/A ConversionError msg N/A pack_double N/A N/A self x N/A N/A N/A N/A N/A N/A N/A N/A self __buf write N/A N/A struct pack >d x N/A N/A N/A N/A struct error N/A msg N/A N/A ConversionError msg N/A pack_fstring N/A N/A self n s N/A N/A N/A N/A n 0 N/A N/A ValueError fstring size must be nonnegative N/A data N/A s N/A n N/A n N/A N/A N/A n 3 4 4 N/A data N/A data N/A N/A n N/A len data N/A N/A N/A N/A self __buf write data N/A N/A pack_fopaque pack_fstring pack_string N/A N/A self s N/A N/A N/A n N/A len s N/A N/A N/A self pack_uint n N/A N/A N/A self pack_fstring n s N/A N/A pack_opaque pack_string N/A pack_bytes pack_string pack_list N/A N/A self list pack_item N/A N/A N/A item list N/A N/A N/A N/A self pack_uint 1 N/A N/A pack_item item N/A N/A N/A self pack_uint 0 N/A pack_farray N/A N/A self n list pack_item N/A N/A N/A N/A N/A len list n N/A N/A ValueError wrong array size N/A item list N/A N/A N/A pack_item item N/A pack_array N/A N/A self list pack_item N/A N/A N/A n N/A len list N/A N/A N/A self pack_uint n N/A N/A N/A self pack_farray n list pack_item N/A N/A Unpacker N/A N/A N/A Unpacks various data representations from the given buffer. __init__ N/A N/A self data N/A N/A N/A N/A N/A self reset data N/A reset N/A N/A self data N/A N/A N/A N/A self __buf data N/A N/A self __pos 0 N/A get_position N/A N/A self N/A N/A N/A N/A self __pos N/A set_position N/A N/A self position N/A N/A N/A N/A self __pos position N/A get_buffer N/A N/A self N/A N/A N/A N/A self __buf N/A done N/A N/A self N/A N/A N/A N/A N/A self __pos N/A len N/A self __buf N/A N/A N/A Error unextracted data remains N/A unpack_uint N/A N/A self N/A N/A N/A i N/A self __pos N/A N/A self __pos j N/A i 4 N/A data N/A N/A self __buf N/A i j N/A N/A N/A len data 4 N/A N/A EOFError N/A x N/A N/A N/A struct unpack >L data N/A 0 N/A N/A N/A N/A int x N/A N/A N/A OverflowError N/A N/A x N/A unpack_int N/A N/A self N/A N/A N/A i N/A self __pos N/A N/A self __pos j N/A i 4 N/A data N/A N/A self __buf N/A i j N/A N/A N/A len data 4 N/A N/A EOFError N/A N/A N/A N/A struct unpack >l data N/A 0 N/A N/A unpack_enum unpack_int unpack_bool N/A N/A self N/A N/A N/A N/A bool N/A N/A self unpack_int N/A unpack_uhyper N/A N/A self N/A N/A N/A hi N/A N/A self unpack_uint N/A lo N/A N/A self unpack_uint N/A N/A N/A N/A long hi 32 lo N/A unpack_hyper N/A N/A self N/A N/A N/A x N/A N/A self unpack_uhyper N/A N/A x 9223372036854775808 N/A N/A x N/A x 18446744073709551616 N/A x N/A unpack_float N/A N/A self N/A N/A N/A i N/A self __pos N/A N/A self __pos j N/A i 4 N/A data N/A N/A self __buf N/A i j N/A N/A N/A len data 4 N/A N/A EOFError N/A N/A N/A N/A struct unpack >f data N/A 0 N/A unpack_double N/A N/A self N/A N/A N/A i N/A self __pos N/A N/A self __pos j N/A i 8 N/A data N/A N/A self __buf N/A i j N/A N/A N/A len data 8 N/A N/A EOFError N/A N/A N/A N/A struct unpack >d data N/A 0 N/A unpack_fstring N/A N/A self n N/A N/A N/A N/A n 0 N/A N/A ValueError fstring size must be nonnegative N/A i N/A self __pos N/A j N/A i N/A N/A N/A n 3 4 4 N/A N/A j N/A len N/A self __buf N/A N/A EOFError N/A N/A self __pos j N/A N/A N/A self __buf N/A i N/A i n N/A N/A unpack_fopaque unpack_fstring unpack_string N/A N/A self N/A N/A N/A n N/A N/A self unpack_uint N/A N/A N/A self unpack_fstring n N/A N/A unpack_opaque unpack_string N/A unpack_bytes unpack_string unpack_list N/A N/A self unpack_item N/A N/A N/A list N/A N/A 1 N/A N/A x N/A N/A self unpack_uint N/A N/A x 0 N/A N/A N/A N/A x 1 N/A N/A ConversionError N/A 0 or 1 expected, got %r N/A x N/A item N/A unpack_item N/A N/A N/A list append item N/A list N/A unpack_farray N/A N/A self n unpack_item N/A N/A N/A list N/A N/A i N/A range n N/A N/A N/A N/A list append N/A unpack_item N/A list N/A unpack_array N/A N/A self unpack_item N/A N/A N/A n N/A N/A self unpack_uint N/A N/A N/A self unpack_farray n unpack_item N/A N/A