Home | Trees | Indices | Help |
---|
|
object --+ | basestring --+ | unicode --+ | String
A string represented using Unicode - a subtype of unicode
.
All strings on D-Bus are required to be valid Unicode; in the "wire protocol" they're transported as UTF-8.
By default, when strings are converted from D-Bus to Python, they
come out as this class. If you prefer to get UTF-8 strings (as instances
of a subtype of str
) or you want to avoid the conversion overhead of
going from UTF-8 to Python's internal Unicode representation, see the
documentation for dbus.UTF8String.
Constructor:
String(value: str or unicode[, variant_level: int]) -> String
variant_level must be non-negative; the default is 0.
|
|||
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
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 string, this is represented in Python by a String or UTF8String with variant_level==2. |
|
|||
Inherited from |
|
|
|
|
|
|
|
variant_levelIndicates how many nested Variant containers this object is contained in: if a message's wire format has a variant containing a variant containing a string, this is represented in Python by a String or UTF8String with variant_level==2. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Jul 7 23:28:30 2017 | http://epydoc.sourceforge.net |