summaryrefslogtreecommitdiff
path: root/python/configuration.cc
AgeCommit message (Collapse)AuthorFilesLines
2009-04-19* python/*.cc: Export all types and add a __new__() method to them.Julian Andres Klode1-3/+20
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/+6
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* Remove any trailing whitespaceJulian Andres Klode1-9/+9
2009-04-13* python/configuration.cc: Support the 'in' operator for ConfigurationJulian Andres Klode1-15/+55
Support the replacement of mapping.has_key() for Configuration,ConfigurationPtr and ConfigurationSub objects. This is implemented by extending the various types with the tp_as_sequence slot, which refers to a PySequenceMethods containing only this method. The CnfGetAttr() function has been removed and replaced by the use of the tp_method slot. This helps the py3k port because the previously used Py_FindMethod() is not avilable anymore. This completes the support of the 'in' operator in all python-apt objects, which makes it even easier to convert python-apt-using applications to py3k once python-apt supports it, as 2to3 converts 'm.has_key(k)' to 'k in m'. Also finalize the types in apt_pkgmodule.cc and add the new 'key in conf' description to the documentation.
2009-01-29* apt/cache.py:Michael Vogt1-0/+18
- when setting a alternative rootdir, read the config from it as well * python/configuration.cc, python/apt_pkgmodule.cc: - add apt_pkg.ReadConfigDir()
2008-05-16Remove trailing whitespace.Ben Finney1-41/+41
2006-10-04* python/configuration.cc:Michael Vogt1-1/+1
- and the final(!?!) incorrect PyMem_{DEL,Free} usage
2004-11-24Avoid null pointer deref in CnfKeys()Arch Librarian1-2/+4
Author: mdz Date: 2003-06-03 03:22:27 GMT Avoid null pointer deref in CnfKeys()
2004-11-24Fix g++-3.0 compilation issuesArch Librarian1-10/+9
Author: mdz Date: 2002-02-26 01:36:15 GMT Fix g++-3.0 compilation issues
2004-11-24Changed include pathsArch Librarian1-2/+2
Author: jgg Date: 2002-01-08 06:53:04 GMT Changed include paths
2004-11-24Initial revisionArch Librarian1-0/+523
Author: jgg Date: 2001-02-20 06:32:01 GMT Initial revision