diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-20 18:10:04 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-20 18:10:04 +0200 |
| commit | 6f7b3df8f590467e76e99189f6ac9a78f8bec65d (patch) | |
| tree | dd03d050b1a282b3a330d295de9620b34c0b91d9 /doc | |
| parent | 652a7312b21aa7121c0075c3c970d5f68fcdf648 (diff) | |
| download | python-apt-6f7b3df8f590467e76e99189f6ac9a78f8bec65d.tar.gz | |
doc/source/whatsnew/0.8.0.rst: Document apt_pkg.SystemLock.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/source/whatsnew/0.8.0.rst | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/source/whatsnew/0.8.0.rst b/doc/source/whatsnew/0.8.0.rst index e1acb5db..8889cbd9 100644 --- a/doc/source/whatsnew/0.8.0.rst +++ b/doc/source/whatsnew/0.8.0.rst @@ -57,8 +57,8 @@ In May 2008, Ben Finney reported bug 481061 against the python-apt package, asking for PEP8 conformant names. With the release of python-apt 0.8, this is finally happening. -Supporting new language features like the :keyword:`with` statement -------------------------------------------------------------------- +Context managers for the :keyword:`with` statement +-------------------------------------------------- This is not a real big change, but it's good to have it: :class:`apt_pkg.ActionGroup` can now be used as a context manager for the :keyword:`with` statement. This makes it more obvious that you are using an @@ -74,6 +74,11 @@ This also works for :class:`apt.Cache`:: for package in my_selected_packages: package.mark_install() # Instance of apt.Package +Yet another context manager is available for locking the package system:: + + with apt_pkg.SystemLock(): + # do your stuff here + Unification of dependency handling ---------------------------------- In apt 0.7, there were three different return types of functions parsing |
