diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-04-13 18:27:43 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-04-13 18:27:43 +0200 |
| commit | 506cb021d62e643fba38ddb4b84572a86cb3a3ba (patch) | |
| tree | 364b053d1560897d5b24dfd8950df341f0f63288 /doc | |
| parent | 6c3e74bdf3a8bd6aced0a2ddb38c1cc7b22ec655 (diff) | |
| download | python-apt-506cb021d62e643fba38ddb4b84572a86cb3a3ba.tar.gz | |
* python/tag.cc: Support 'key in mapping' for TagSections
Support the replacement of mapping.has_key() for sections, and
update the usage in apt/package.py and apt/debfile accordingly.
This is implemented by extending the TagSecType with sequence
methods, but only settings the contains method there.
The TagSecGetAttr() function has been removed and replaced by
the use of the tp_methods slot.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/source/apt_pkg/cache.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/source/apt_pkg/cache.rst b/doc/source/apt_pkg/cache.rst index af67d82f..146c2c2a 100644 --- a/doc/source/apt_pkg/cache.rst +++ b/doc/source/apt_pkg/cache.rst @@ -1199,6 +1199,10 @@ broken dependencies: Return the value of the field at *key*. If *key* is not available, raise :exc:`KeyError`. + .. describe:: key in section + + Return ``True`` if *section* has a key *key*, else ``False``. + .. method:: Bytes The number of bytes in the section. |
