| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
This file includes <Python.h>, with some #defines that affect the
interpretation of the Python headers (PY_SSIZE_T_CLEAN, PY_SIZE_T_CLEAN).
In particular, <Python.h> transitively includes pyconfig.h, which
defines _GNU_SOURCE, altering the version of struct stat used;
this is potentially a problem if a struct stat is shared between
files, although in practice we don't do that.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749133
|
| | |
|
| |
|
|
|
|
|
| |
2, since there are still some unconditional PyInt calls, which are not valid
in Python 3. However, it lays the framework for conditionalizing on Python 3
and using only PyLong in that case. Where it doesn't matter, PyLong is used
unconditionally.
|
| |
|
|
|
| |
PyString API. This makes the code compilable in Python 2.x (x >= 6) and
Python 3.
|
| |
|
|
| |
initialize the weaklist slots.
|
| |
|
|
| |
for Python 3 support.
|
| |
|
|
|
|
| |
Based on part of a patch from Barry Warsaw.
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
| |
|
|
|
|
|
| |
This avoids these static types wrongly being deallocated. Python
implements static types as having one initial reference, which is never
meant to be released, but if you get your refcounting wrong they'll be
"deallocated" (causing a crash) during Py_Finalize.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
needs to call it
|
| |
|
|
|
|
|
|
|
| |
Accept a LibDBusConnection for the address (sic) parameter,
so we can construct a Connection for a DBusConnection that already
exists.
The way all this works right now is a bit unfortunate, with hindsight,
but most of it is fixable like this.
|
| |
|
|
| |
removing all references to the LGPL as a result
|
| | |
|
| | |
|
| |
|
|
|
|
| |
* Connection: use PyErr_Fetch and PyErr_Restore to preserve exception state
* MainLoop: add a comment indicating that the "free" callback needs to do the
same if it might alter the exception state
|
| |
|
|
| |
lines in license statement
|
| |
|
|
|
|
|
| |
* Only set up a main loop if we actually have one (not None)
* Don't double-close the DBusConnection (causing an assertion in libdbus) if
we somehow fail to set up the main loop. Thanks to tsuraan
<tsuraan at gmail.com> for the bug report.
|
| |
|
|
| |
objects are actually made. (Increases backwards compatibility with Pyrex-dbus-python)
|
| |
|
|
| |
current API (spotted by Phil Thompson)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the process:
HACKING.txt: update
include/dbus-python.h: add some typedefs to make it saner
bus.c, conn.c, conn-methods.c: further alter docstrings to keep epydoc happy
exceptions.c: create exceptions in a more longwinded way for Python 2.5 compatibility
message-get-args.c, bus/__init__.py: tweak docstrings
dbus/introspect_parser.py: make docstring valid reStructuredText
run-test.sh: simplify, since configure now does some of the work
test/*.py: use paths from run-test.sh, cope with out-of-tree builds
test-standalone.py: carry out additional sanity checks
|
| |
|
|
| |
keep epydoc happy
|
| |
|
|
|
|
| |
segfault on OLPC.
Also add debug related to this.
|
| | |
|
| | |
|
| |
|
|
| |
Add lifecycle debugging and assertions
|
| | |
|
| |
|