summaryrefslogtreecommitdiff
path: root/_dbus_bindings/string.c
Commit message (Collapse)AuthorAgeFilesLines
* This is the big one; it adds Python 3 support.Barry Warsaw2011-12-151-7/+10
|
* In preparation for Python 3 support, all reprs now return unicodes, which isBarry Warsaw2011-12-141-6/+6
| | | | | legal in Python 2 also. Use fancy REPR macro and the %V format code for cross-Python compatibility.
* Use PyVarObject_HEAD_INIT to initialize typesBarry Warsaw2011-12-131-6/+3
| | | | | | Part of a patch for Python 3 compatibility. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* Use Py_TYPE() rather than thing->ob_type, for Python 3 portabilitySimon McVittie2011-12-131-2/+2
| | | | | | Based on part of a patch from Barry Warsaw. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* fd.o #23831: make sure to ref types passed to PyModule_AddObjectSimon McVittie2010-12-021-0/+1
| | | | | | | 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.
* Use Py_CLEAR for greater robustnessSimon McVittie2010-12-021-2/+2
|
* Relicense Collabora code under the MIT/X11 license proposed for dbus core, ↵Simon McVittie2007-09-271-15/+18
| | | | removing all references to the LGPL as a result
* Actually commit the numerous copyright-statement changes.Simon McVittie2007-02-071-8/+8
|
* Fix memory leak where Struct, _LongBase, _StrBase, String leaked their ↵Simon McVittie2007-02-071-44/+31
| | | | | | | | | | | | | | __dict__ on deallocation. * Use a fixed-size struct for String (unicode objects are in fact fixed-size) and store its variant_level that way. * Don't store Struct, _LongBase, _StrBase variant_level and Struct signature in a __dict__, but instead have a global dict mapping object IDs to variant levels, and a global dict mapping Struct IDs to signatures. This is a bit strange, but easier than correctly freeing the __dict__ (which is stored at the end of a variable-length struct, so somewhat hard to get at). * With this change, allocating objects in a loop no longer leaks memory, and neither does the test case supplied by Luka Renko.
* Close a couple of reference leaks in String (there's another somewhere, but ↵Simon McVittie2007-02-051-8/+22
| | | | I can't find it)
* dbus, _dbus_bindings, _dbus_glib_bindings: remove accidentally duplicated ↵Simon McVittie2007-01-251-2/+0
| | | | lines in license statement
* bytes.c, string.c: Don't mention get_object_by_unique_name in docstrings, it ↵Simon McVittie2007-01-161-1/+1
| | | | no longer exists
* Improve docstrings for String and UTF8String explaining how to get ↵Simon McVittie2007-01-091-0/+26
| | | | UTF8String from the API.
* Improve various type docstringsSimon McVittie2006-12-211-10/+15
|
* Separate out remaining types (abstract, bytes, containers, int, float, ↵Simon McVittie2006-12-111-0/+347
signature, string) into separate translation units