1 D-Bus Python Bindings 0.82.4 (unreleased)
2 =========================================
6 * Using non-recursive make for dbus/ directory should fix builds in some
7 environments (fd.o #12741)
11 * Everything is now under the same MIT/X11 license used for Collabora code in
13 * Added copyright headers to some files that were still missing them
15 D-Bus Python Bindings 0.82.3 (2007-09-27)
16 =========================================
20 * Out-of-tree builds with an absolute $(srcdir) can now build docs and run tests
21 * Closing private dbus.Bus no longer raises KeyError (fd.o #12096)
22 * async_err_cb(MyException()) now works (fd.o #12403)
23 * dbus.service.Object.remove_from_connection no longer claims that multiple
24 exports aren't possible (fd.o #12432)
25 * Setting _dbus_error_name as a class attribute of DBusException subclasses
30 * dbus.Bus(private=True) (use dbus.bus.BusConnection in new code, dbus.Bus
31 basically just adds the shared-connection behaviour)
35 * Code for which Collabora is the only copyright holder is now under the
36 same permissive MIT/X11 license under which dbus core is being relicensed
37 (this allows everything the old license would have allowed, and more)
39 D-Bus Python Bindings 0.82.2 (2007-08-01)
40 =========================================
42 Incompatibility with 0.82.1:
44 * If you pass the timeout argument to call_async or an asynchronous proxy
45 method call and expect it to be in milliseconds, you should change the
46 argument to be in seconds, and require dbus-python >= 0.82.2.
48 This feature didn't work at all in versions prior to 0.82.1, so any code
49 that works with 0.82.0 or earlier is unaffected.
53 * @dbus.service.method supports a rel_path_keyword argument for the benefit
54 of fallback objects, which provides the method implementation with the path
55 of the object within the exported subtree. For instance, if you have a
56 fallback object exported at /Fallback, and you call a method that has
57 rel_path_keyword='rel_path' on /Fallback and on /Fallback/Some/Where, the
58 method implementation will be called with rel_path='/' and with
59 rel_path='/Some/Where' respectively. (fd.o #11623)
61 * If you have epydoc version 3 (currently in beta), API documention is now
66 * As mentioned under "Incompatibilities" above, Connection.call_async()
67 measures timeouts in seconds, as was always intended.
68 This means that calls through a proxy object with a reply_handler and
69 error_handler will measure the timeout in seconds too.
71 * Introspect() now works on objects exported in more than one location.
74 * Building against Python 2.4 on non-Debian-derived distributions, or a
75 non-default Python version on Gentoo, should work again (revenge
76 of fd.o #11282, thanks Eyal Ben David).
78 D-Bus Python Bindings 0.82.1 (2007-07-11)
79 =========================================
81 The "double precision" release.
85 * Parse the timeout correctly in send_message_with_reply() and
86 send_message_with_reply_and_block(), fixing the use of non-default timeouts
88 * The tutorial no longer uses interactive-Python syntax, as it confused users.
90 * When making a call via a proxy object with ignore_reply=True, also get the
91 necessary introspection data asynchronously. This can avoid deadlocks in
92 some cases, such as calling methods in the same process (though this is not
93 recommended, for efficiency and sanity reasons).
94 * dbus.lowlevel exposes enough constants to write correct filter functions.
95 * We don't use dbus_watch_get_fd() (deprecated in libdbus) unless our libdbus
96 is too old to have the modern replacement, dbus_watch_get_unix_fd().
100 * Omitting the bus argument in the BusName constructor is deprecated.
101 The fact that it uses the globally shared connection to the session bus by
102 default is uncomfortably subtle.
104 D-Bus Python Bindings 0.82.0 (2007-06-19)
105 =========================================
109 * dbus.service.Object can start off with no Connection or object path, and
110 become exported later. If suitable class attributes are set, objects can
111 even be exported on multiple connections, or with multiple object-paths,
114 * dbus.service.FallbackObject implements a whole subtree of object-path space
117 * ``@method`` accepts a parameter ``connection_keyword`` so methods can find
118 out which connection to use for any follow-up actions.
120 * ``@signal`` has a new parameter ``rel_path_keyword`` which gets the path at
121 which to emit the signal, relative to the path of the FallbackObject.
122 ``path_keyword`` is now deprecated, and will raise an exception if used
123 on an object with ``SUPPORTS_MULTIPLE_OBJECT_PATHS``, including any
128 * In watch_name_owner, only the desired name is watched!
130 * When cleaning up signal matches, errors are ignored. This avoids using up
131 scarce pending-call allowance on dbus-daemon < 1.1, and emitting error
132 messages if we get disconnected.
134 * Signal handlers which are bound to a unique name are automatically
135 disconnected when the unique name goes away, reducing the likelihood that
136 applications will leak signal matches.
138 * Some corrections were made to the tutorial (@service and @method take a
139 parameter dbus_interface, not just interface; fd.o #11209).
141 * ${PYTHON}-config is used to get the Python include path (patch from
142 Sebastien Bacher/Ubuntu, fd.o #11282).
144 D-Bus Python Bindings 0.81.1 (4 June 2007)
145 ==========================================
149 * When an Error message on the bus is represented as a DBusException, the
150 error name is copied into the exception and can be retrieved by
151 get_dbus_name(). Exception handlers should use this instead of looking at
152 the stringified form of the exception, unless backwards compatibility
154 * DBusException objects now get all arguments from the Error message, not
155 just the first (although there will usually only be one). Use the 'args'
156 attribute if you need to retrieve them.
157 * The Connection, BusConnection and Bus classes have a method
158 list_exported_child_objects(path: str) -> list of str, which wraps
159 dbus_connection_list_registered()
160 * You can remove objects from D-Bus before they become unreferenced, by
161 using dbus.service.Object.remove_from_connection()
162 (https://bugs.freedesktop.org/show_bug.cgi?id=10457)
166 * Don't deadlock when removing a signal match that tracks name-owner changes.
167 (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426412)
168 * Include child nodes in introspection using list_exported_child_objects()
170 D-Bus Python Bindings 0.81.0 (9 May 2007)
171 =========================================
173 The 'series of tubes' release
174 -----------------------------
176 This is a feature release with support for non-bus-daemon connections
177 and improved GObject integration.
181 * Bus has a superclass dbus.bus.BusConnection (a connection to a bus daemon,
182 but without the shared-connection semantics or any deprecated API)
183 for the benefit of those wanting to subclass bus daemon connections
185 * BusConnection has a superclass dbus.connection.Connection (a
186 connection without a bus daemon) for use in peer-to-peer situations,
187 or distributed pseudo-bus situations without a bus daemon such as
188 Telepathy's Tubes API
190 * dbus.gobject_service.ExportedGObject is like dbus.service.Object, but
191 is also a subclass of GObject (with the necessary metaclass magic to
192 make this work). Until someone has verified that the GObject side of
193 things works as expected too, I consider this API to be potentially
196 * Connection and BusConnection have gained a number of useful methods,
197 including watch_name_owner (track name owner changes asynchronously,
198 avoiding race conditions), call_blocking and call_async (blocking and
199 asynchronous method calls without going via a proxy - note that these
200 are semi-low-level interfaces which don't do introspection), and
201 list_names, list_activatable_names and get_name_owner which are
202 simple wrappers for the corresponding org.freedesktop.DBus methods
204 * dbus.Interface (now also available at dbus.proxies.Interface)
205 and dbus.proxies.ProxyObject now have some reasonably obvious properties.
209 * All keyword arguments called named_service are deprecated in favour of an
210 argument called bus_name (to be compatible with both older and newer
211 dbus-python, you should pass these positional arguments).
213 * The bus keyword argument to dbus.proxies.ProxyObject is deprecated in
214 favour of an argument called conn, because proxies will work on non-bus
215 connections now (again, for maximum compatibility you should use a
216 positional argument for this).
218 * No warning is raised for this, but I consider calling any remote method
219 on a ProxyObject or Interface whose name is either alllowercase or
220 lower_case_with_underscores to be deprecated, and reserve the right
221 to add properties or methods of this form in future releases - use
222 ProxyObject.get_dbus_method if you must call a remote method named in
223 this way. Methods named following TheUsualDBusConvention or
224 theJavaConvention are safe.
228 * Exceptions in signal handlers print a stack trace to stderr (this can
229 be redirected elsewhere with Python's logging framework). Partially
230 addresses fd.o #9980.
232 * The reserved local interface and object path are properly checked for.
234 * When you return a tuple that is not a Struct from a method with no
235 out_signature, it's interpreted as multiple return values, not a
236 single Struct (closes fd.o #10174).
238 * If send_with_reply() returns TRUE but with pending call NULL, dbus-python
239 no longer crashes. This can happen when unexpectedly disconnected.
241 * Arguments are not examined for functions declared METH_NOARGS (this is
242 unnecessary and can cause a crash).
244 Other notable changes:
246 * dbus-python uses the standard Python logging framework throughout.
247 The first time a WARNING or ERROR is generated, it will configure the
248 logging framework to output to stderr, unless you have already
249 configured logging in your application.
251 * The tutorial now advocates the use of add_signal_receiver if all you
252 want to do is listen for signals: this avoids undesired activation,
253 e.g. of Listen or Rhythmbox (!). Addresses fd.o #10743, fd.o #10568.
255 D-Bus Python Bindings 0.80.2 (13 February 2007)
256 ===============================================
257 - Fix numerous memory and reference leaks
258 - Only use -Werror if the user specifically asks for it
259 - Audit tp_dealloc callbacks to make sure they correctly preserve the
261 - Relicense files solely owned by Collabora Ltd. more permissively (LGPL/AFL
262 rather than GPL/AFL) - this includes the tutorial and all the C code
264 D-Bus Python Bindings 0.80.1 (24 January 2007)
265 ==============================================
267 - Install dbus/_version.py, so dbus.__version__ exists again
269 D-Bus Python Bindings 0.80.0 (24 January 2007)
270 ==============================================
271 - The "everything changes" release
272 - Rewrite dbus_bindings (Pyrex) as _dbus_bindings (C) - API changes!
273 - Define what's public API
274 - Move low-level but still public API to dbus.lowlevel
275 - Remove Variant class, add variant_level property on all D-Bus types
276 - Make signal matching keep working as expected when name ownership changes
277 - Use unambiguous D-Bus types when transferring from D-Bus to Python
278 - Follow well-defined rules when transferring from Python to D-Bus
279 - Add utf8_strings and byte_arrays options in various places, so a user
280 can tweak the calling conventions to be more efficient
281 - Raise RuntimeError if user tries to use a connection with no main loop
282 to do something that won't work without one
283 - Make asynchronous method calls actually asynchronous when made before
284 introspection results come back
285 - Redo main loop machinery so we can add pure-Python main loops later without
287 - Allow construction of a dbus.service.Object if you don't have a BusName
289 - Port introspection XML parser from libxml2 (external package) to expat
290 (included with Python)
291 - Port build system from distutils to autoconf/automake/libtool
292 - Install a header file for third-party main loop integration
293 - Make compatible with Python 2.5, including on 64-bit platforms
294 - Add docstrings throughout
295 - Add more tests and examples
296 - Add interoperability tests (which interoperate with Java)
297 - Add copyright notices!
299 D-Bus Python Bindings 0.71 (24 July 2006)
300 ==============================================================
301 - Binary modules are now installed in the correct directory
302 - Distutils exports the dbus and dbus-glib cflags
304 D-Bus Python Bindings 0.70 (17 July 2006)
305 ==============================================================
306 - First release of bindings split
307 - Move to a distutils build enviornment
308 - It is possible to now specify sender_keyword="foo", path_keyword="bar" when
309 adding a signal listener