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

Class Signature

source code

     object --+            
              |            
     basestring --+        
                  |        
                str --+    
                      |    
_dbus_bindings._StrBase --+
                          |
                         Signature

A string subclass whose values are restricted to valid D-Bus signatures. When iterated over, instead of individual characters it produces Signature instances representing single complete types.

Constructor:

``Signature(value: str or unicode[, variant_level: int]) -> Signature``

value must be a valid D-Bus signature (zero or more single complete types).

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

Instance Methods [hide private]
 
__iter__(x)
iter(x)
source code
a new object with type S, a subtype of T
__new__(T, S, ...) source code

Inherited from _dbus_bindings._StrBase: __delattr__, __getattribute__, __repr__, __setattr__

Inherited from str: __add__, __contains__, __eq__, __ge__, __getitem__, __getnewargs__, __getslice__, __gt__, __hash__, __le__, __len__, __lt__, __mod__, __mul__, __ne__, __rmod__, __rmul__, __str__, capitalize, center, count, decode, encode, endswith, expandtabs, find, index, isalnum, isalpha, isdigit, islower, isspace, istitle, isupper, join, ljust, lower, lstrip, partition, replace, rfind, rindex, rjust, rpartition, rsplit, rstrip, split, splitlines, startswith, strip, swapcase, title, translate, upper, zfill

Inherited from object: __init__, __reduce__, __reduce_ex__

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 signature, this is represented in Python by a Signature with variant_level==2.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(T, S, ...)

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