summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2011-04-12 15:23:17 +0200
committerJulian Andres Klode <jak@debian.org>2011-04-12 15:23:17 +0200
commit16955bcd8717b3e2c10496968765c3a4ea252b1f (patch)
tree1a0456c8284aa00ac5c4cce6733005e2fba6ceba /doc/source
parentda11ffd96bbd58f51c54857dc72e18f3c2d6b998 (diff)
downloadpython-apt-16955bcd8717b3e2c10496968765c3a4ea252b1f.tar.gz
apt.package: Add 'tasks' to Version, improve doc (Closes: #619574)
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/library/apt.package.rst29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/source/library/apt.package.rst b/doc/source/library/apt.package.rst
index 4b143b8a..d8731ea8 100644
--- a/doc/source/library/apt.package.rst
+++ b/doc/source/library/apt.package.rst
@@ -90,6 +90,35 @@ Origin Information
it provides a GPG-signed Release file and the GPG-key used is in the
keyring used by apt (see apt-key).
+
+
+The Record class
+-----------------
+.. autoclass:: Record
+ :members:
+
+ .. note::
+ .. versionchanged:: 0.7.100
+ This class is a subclass of :class:`collections.Mapping` when used
+ in Python 2.6 or newer.
+
+ .. describe:: record[name]
+
+ Return the value of the field with the name *name*.
+
+ .. describe:: name in record
+
+ Return whether a field *name* exists in record.
+
+ .. describe:: len(record)
+
+ The number of fields in the record
+
+ .. describe:: str(record)
+
+ Display the record as a string
+
+
Examples
---------
.. code-block:: python