__new__(cls,
name,
bus=None,
allow_replacement=False,
replace_existing=False,
do_not_queue=False)
Static Method
| source code
|
Constructor, which may either return an existing cached object
or a new object.
- Parameters:
name (str) - The well-known name to be advertised
bus (dbus.Bus) - A Bus on which this service will be advertised.
Omitting this parameter or setting it to None has been
deprecated since version 0.82.1. For backwards compatibility,
if this is done, the global shared connection to the session
bus will be used.
allow_replacement (bool) - If True, other processes trying to claim the same well-known
name will take precedence over this one.
replace_existing (bool) - If True, this process can take over the well-known name
from other processes already holding it.
do_not_queue (bool) - If True, this service will not be placed in the queue of
services waiting for the requested name if another service
already holds it.
- Returns: a new object with type S, a subtype of T
- Overrides:
object.__new__
|