Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2014-01-14 | python/pkgmanager.cc: Do not create temporary CppPyRef | Julian Andres Klode | 1 | -1/+1 | |
Instead of creating a CppPyRef with the only purpose of destroying it, just decrement the reference count. Reported-by: cppcheck | |||||
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 | |||||
2013-09-11 | Remove old API compatibility C++ support code | Julian Andres Klode | 1 | -9/+0 | |
2013-08-05 | coverity fixes | Michael Vogt | 1 | -1/+1 | |
2011-05-27 | Fix spelling errors reported by Lintian (sep[a->e]rated, overrid[d]en) | Julian Andres Klode | 1 | -6/+6 | |
2011-04-29 | apt_pkg: Add subclassing fun to PackageManager, for #623485 as well | Julian Andres Klode | 1 | -37/+240 | |
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 | -2/+2 | |
2010-04-01 | python: Document every class, function, property. | Julian Andres Klode | 1 | -4/+21 | |
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 | -2/+2 | |
2010-02-27 | * python: | Julian Andres Klode | 1 | -6/+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-27 | Merge the CppOwnedPyObject C++ class into CppPyObject. | Julian Andres Klode | 1 | -1/+1 | |
2009-07-24 | python/apt_pkgmodule.cc: Move all constants here. | Julian Andres Klode | 1 | -23/+1 | |
Now the constants are accessible from the types, and not only from instances. | |||||
2009-07-13 | python: Rename all PyTypeObject's to conform to PEP 7. | Julian Andres Klode | 1 | -6/+6 | |
This is the first step towards implementing coding guidelines for the C++ code and providing an usable C++ API. | |||||
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-21 | python: Add DeprecationWarning to functions which were replaced by classes. | Julian Andres Klode | 1 | -0/+3 | |
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-05 | python/: Put all deprecated Get*() functions into #ifdef COMPAT_0_7. | Julian Andres Klode | 1 | -0/+2 | |
2009-06-03 | python/: Convert most names to PEP8 naming conventions (except ↵ | Julian Andres Klode | 1 | -0/+10 | |
Version,PackageFile,MetaIndex). On our way to close Bug#481061, this converts almost all names to PEP 8 naming conventions. Missing are now apt_pkg.Version, apt_pkg.PackageFile, apt_pkg.MetaIndex and apt.progress.*. In case of the missing apt_pkg classes, they are not converted yet because they do not use getset descriptors yet. apt.progress.* has not been converted yet because the extension interacts with it, and we first need to modify the extension to recognize the new names, as well as the old names (old applications shouldn't break). | |||||
2009-04-19 | * python/*.cc: Export all types and add a __new__() method to them. | Julian Andres Klode | 1 | -19/+33 | |
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 Klode | 1 | -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-04-14 | * python/pkgmanager.cc: Use tp_methods and tp_getset for PkgManagerType | Julian Andres Klode | 1 | -18/+34 | |
2008-05-16 | Remove trailing whitespace. | Ben Finney | 1 | -11/+11 | |
2006-09-12 | * python/pkgmanager.cc: | Michael Vogt | 1 | -1/+1 | |
- fix typo | |||||
2005-11-22 | * fixes in the acquire interface code (use CppPyObject with pkgAcquire* ↵ | Michael Vogt | 1 | -4/+3 | |
directly instead of using a PkgAcquireStruct) | |||||
2005-11-22 | * python/sourcelist.cc cleaned up | Michael Vogt | 1 | -5/+4 | |
2005-11-22 | * another bugfix in the new pkgPackageManager wrapper | Michael Vogt | 1 | -4/+2 | |
2005-11-22 | * fix in the pkgmanager.cc code (/me needs to be hit with a clue-stick) | Michael Vogt | 1 | -13/+43 | |
2005-11-18 | * basic pkgAcquire + pkgPackageManager support added | Michael Vogt | 1 | -0/+109 | |