| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
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.
|
|
- when setting a alternative rootdir, read the
config from it as well
* python/configuration.cc, python/apt_pkgmodule.cc:
- add apt_pkg.ReadConfigDir()
|
|
|
|
- and the final(!?!) incorrect PyMem_{DEL,Free} usage
|
|
Author: mdz
Date: 2003-06-03 03:22:27 GMT
Avoid null pointer deref in CnfKeys()
|
|
Author: mdz
Date: 2002-02-26 01:36:15 GMT
Fix g++-3.0 compilation issues
|
|
Author: jgg
Date: 2002-01-08 06:53:04 GMT
Changed include paths
|
|
Author: jgg
Date: 2001-02-20 06:32:01 GMT
Initial revision
|