Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-10-14 | python/indexrecords.cc: IndexRecords.load() needs to accept bytes as well | Julian Andres Klode | 1 | -2/+2 | |
2013-10-08 | apt_pkg: Support paths supplied as bytes objects (See: #680971) | Julian Andres Klode | 1 | -2/+2 | |
We should be done now. DO NOT MERGE | |||||
2011-04-12 | apt_pkg: Fix unsigned/long-vs-int issues (LP: #610820) | Julian Andres Klode | 1 | -1/+1 | |
This fix is large, but simple in concept. Instead of relying on Py_BuildValue and type signatures, or type-specific conversion functions, create a new set of overloaded MkPyNumber() functions that automatically do the right thing for each numerical type. | |||||
2010-04-21 | python: Commit documentation changes suggested by debian-l10n-english. | Julian Andres Klode | 1 | -3/+3 | |
2010-04-01 | python: Document every class, function, property. | Julian Andres Klode | 1 | -6/+10 | |
Finally, a complete reference to apt_pkg available via pydoc and __doc__ attributes. | |||||
2010-04-01 | python: Return bool instead of int to Python where possible, looks better. | Julian Andres Klode | 1 | -1/+1 | |
2010-02-02 | Remove inline functions from the C++ API, export them instead (part 2). | Julian Andres Klode | 1 | -1/+1 | |
2010-01-27 | Merge the CppOwnedPyObject C++ class into CppPyObject. | Julian Andres Klode | 1 | -1/+1 | |
2010-01-15 | python/indexrecords.cc,python/policy.cc: Rename functions. | Julian Andres Klode | 1 | -13/+13 | |
2009-07-10 | python/indexrecords.cc: Correctly Decrease refcount for HashString. | Julian Andres Klode | 1 | -3/+6 | |
Create a copy of the HashString() and create a CppPyObject for it. After adding it to the tuple, decrease the reference count. The HashString() copy allows us to deallocate the indexRecords and does not require the PyHashString objects to be CppOwnedPyObject. | |||||
2009-06-25 | python: Use PyVarObject_HEAD_INIT() instead of PyObject_HEAD_INIT(). | Julian Andres Klode | 1 | -4/+1 | |
This is related to PEP 3123 and fixes some compiler warnings. | |||||
2009-06-12 | Bugfix: Delete pointers correctly, fixing memory leaks. (LP: #370149) | Julian Andres Klode | 1 | -1/+1 | |
We previously called the destructor of the pointer. This resulted in no object using pointers being deallocated. This patch introduces CppDeallocPtr() and CppOwnedDeallocPtr() which do the same as the other CppDealloc() and CppOwnedDealloc(), but use 'delete' on the pointer instead of the deconstructor. Furthermore, this patch also changes AcquireFile to be a CppOwnedPyObject, owned by the Acquire object. Without this change, deleting the Acquire object would cause a crash when AcquireFile is deallocated. | |||||
2009-06-09 | Allow types providing __new__() to be subclassed. | Julian Andres Klode | 1 | -1/+2 | |
2009-06-08 | Fix build failures with python2.4-dbg (const) | Julian Andres Klode | 1 | -1/+1 | |
2009-06-08 | python/indexrecords.cc: Swap tuple elements in lookup, and raise KeyError ↵ | Julian Andres Klode | 1 | -3/+8 | |
when none is found. | |||||
2009-06-08 | Add apt_pkg.HashString and apt_pkg.IndexRecords (Closes: #456141) | Julian Andres Klode | 1 | -0/+121 | |