| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
basestring --+
|
str --+
|
_dbus_bindings._StrBase --+
|
UTF8String
A string represented using UTF-8 - a subtype of str.
All strings on D-Bus are required to be valid Unicode; in the "wire protocol" they're transported as UTF-8.
By default, when byte arrays are converted from D-Bus to Python, they
come out as a dbus.String, which is a subtype of unicode.
If you prefer to get UTF-8 strings (as instances of this class) or you
want to avoid the conversion overhead of going from UTF-8 to Python's
internal Unicode representation, you can pass the utf8_strings=True
keyword argument to any of these methods:
Constructor:
dbus.UTF8String(value: str or unicode[, variant_level: int]) -> UTF8String
If value is a str object it must be valid UTF-8.
variant_level must be non-negative; the default is 0.
Since: 0.80 (in older versions, use dbus.String)
|
|||
| a new object with type S, a subtype of T |
|
||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Feb 18 18:19:03 2010 | http://epydoc.sourceforge.net |