From 425257ddf930105bea6d648a19e184c74da4177b Mon Sep 17 00:00:00 2001 From: "John (J5) Palmieri" Date: Thu, 5 May 2005 18:01:45 +0000 Subject: * python/Makefile.am: changed to use pyexecdir for the binding shared libraries (Bug#2494) * python/exceptions.py: bring exceptions over from the bindings so they can be used in applications (Bug#2036) Make all exceptions derive from DBusException * python/_dbus.py, python/proxies.py: implement __repr__ in a couple of classes so that print obj doesn't throw an exception (Bug #1685) --- python/proxies.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/proxies.py') diff --git a/python/proxies.py b/python/proxies.py index 0e00d64a..d8804c02 100644 --- a/python/proxies.py +++ b/python/proxies.py @@ -32,6 +32,11 @@ class ProxyObject: self._named_service, self._object_path, iface, member) + def __repr__(self): + return ''%( + self._bus, self._named_service, self._object_path , id(self)) + __str__ = __repr__ + class ProxyMethod: """A proxy Method. -- cgit