summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-04-13 20:00:09 +0200
committerJulian Andres Klode <jak@debian.org>2009-04-13 20:00:09 +0200
commitccd98916ba50c7583f354e0d3487ffb0830103f0 (patch)
treef38068a3d3a5053600663c4e25fc2c0396a0e476 /debian
parentebedf54fd4c72bfbf5c5e60d3d908cd66acace95 (diff)
downloadpython-apt-ccd98916ba50c7583f354e0d3487ffb0830103f0.tar.gz
* python/configuration.cc: Support the 'in' operator for Configuration
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.
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 29927989..261ff7bd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,7 @@
python-apt (0.7.11) UNRELEASED; urgency=low
- * python/tag.cc:
- - Support 'key in mapping' for TagSections
+ * Support the 'in' operator (e.g. "k in d") in Configuration{,Ptr,Sub}
+ objects (e.g. apt_pkg.Config) and in TagSections (apt_pkg.ParseSection())
* Replace support for file objects with a more generic support for any object
providing a fileno() method and for file descriptors (integers).
* Add support for the Breaks fields