summaryrefslogtreecommitdiff
path: root/python/metaindex.cc
AgeCommit message (Collapse)AuthorFilesLines
2011-11-10fix build against apt in experimentalMichael Vogt1-2/+2
2010-04-21python: Commit documentation changes suggested by debian-l10n-english.Julian Andres Klode1-3/+2
2010-04-01python: Document every class, function, property.Julian Andres Klode1-5/+14
Finally, a complete reference to apt_pkg available via pydoc and __doc__ attributes.
2010-04-01python: Return bool instead of int to Python where possible, looks better.Julian Andres Klode1-1/+1
2010-02-27* python:Julian Andres Klode1-7/+1
- Handle deprecated attributes and methods in the tp_gettattro slot, this allows us to easily warn if a deprecated function is used.
2010-01-27Merge the CppOwnedPyObject C++ class into CppPyObject.Julian Andres Klode1-4/+4
2010-01-20Rename apt_pkg.PackageIndexFile to apt_pkg.IndexFile.Julian Andres Klode1-1/+1
2009-07-24python: Fix some more possible NULL issues.Julian Andres Klode1-1/+3
2009-07-17python: Use PyString_FromFormat instead of snprintf.Julian Andres Klode1-7/+4
2009-07-13python: Rename all PyTypeObject's to conform to PEP 7.Julian Andres Klode1-2/+2
This is the first step towards implementing coding guidelines for the C++ code and providing an usable C++ API.
2009-07-12python/metaindex.cc: Fix deletion of the IndexFile objects in ↵Julian Andres Klode1-2/+5
MetaIndex.index_files First of all, make the objects mortal by decreasing their refcount after adding them to the list. Secondly, make the objects owned by MetaIndex and thirdly, set NoDelete on them, because they are managed by metaIndex.
2009-06-25python: Use PyVarObject_HEAD_INIT() instead of PyObject_HEAD_INIT().Julian Andres Klode1-4/+1
This is related to PEP 3123 and fixes some compiler warnings.
2009-06-12Bugfix: Delete pointers correctly, fixing memory leaks. (LP: #370149)Julian Andres Klode1-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-04python/cache.cc, python/metaindex.cc: Convert remaining stuff to getset ↵Julian Andres Klode1-52/+78
descriptors.
2009-04-19* python/*.cc: Export all types and add a __new__() method to them.Julian Andres Klode1-1/+1
Some names may be changed before the release, but this is a good draft.
2009-04-15* Introduce support for Python 3 (Closes: #523645)Julian Andres Klode1-0/+2
This is the first initial port to Python 3. The API is almost completely identical to the one found in Python 2, except that functions working with binary data require bytes (md5sum,sha1sum,sha256sum,Base64Encode). Using setup3.py to install the modules will not work, because the apt package still has to be converted to Python 3. For the package, we call 2to3-3.1 in debian/rules to do this automatically.
2009-01-11Merge Ben Finney's whitespace changes (Closes: #481563)Julian Andres Klode1-4/+4
2008-10-22* python/metaindex.ccMichael Vogt1-0/+3
- fix crash when incorrect attribute is given
2008-05-16Remove trailing whitespace.Ben Finney1-4/+4
2007-09-04* python/metaindex.cc:Michael Vogt1-0/+78
- added support for the metaIndex objects * python/sourceslist.cc: - support new "List" attribute that returns the list of metaIndex source entries