Package dbus :: Class Struct
[hide private]
[frames] | no frames]

Class Struct

source code

object --+    
         |    
     tuple --+
             |
            Struct

An structure containing items of possibly distinct types.

Constructor:

dbus.Struct(iterable, signature=None, variant_level=0) -> Struct

D-Bus structs may not be empty, so the iterable argument is required and may not be an empty iterable.

signature is either None, or a string representing the contents of the struct as one or more complete type signatures. The overall signature of the struct will be the given signature enclosed in parentheses, ().

If the signature is None (default) it will be guessed from the types of the items during construction.

variant_level must be non-negative; the default is 0.



Instance Methods [hide private]
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
source code
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
source code
 
__new__(T, S, ...)
Returns: a new object with type S, a subtype of T
source code
 
__repr__(x)
repr(x)
source code
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
source code

Inherited from tuple: __add__, __contains__, __eq__, __ge__, __getitem__, __getnewargs__, __getslice__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __rmul__

Inherited from object: __init__, __reduce__, __reduce_ex__, __str__

Instance Variables [hide private]
int variant_level
Indicates how many nested Variant containers this object is contained in: if a message's wire format has a variant containing a variant containing a struct, this is represented in Python by a Struct with variant_level==2.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__delattr__(...)

source code 
x.__delattr__('name') <==> del x.name
Overrides: object.__delattr__

__getattribute__(...)

source code 
x.__getattribute__('name') <==> x.name
Overrides: tuple.__getattribute__

__new__(T, S, ...)

source code 
Returns:
a new object with type S, a subtype of T

Overrides: tuple.__new__

__repr__(x)
(Representation operator)

source code 
repr(x)
Overrides: tuple.__repr__

__setattr__(...)

source code 
x.__setattr__('name', value) <==> x.name = value
Overrides: object.__setattr__