[Pkg-mpd-commits] [python-mpd] 96/262: README.txt explain send_ and fetch_ variants

Simon McVittie smcv at debian.org
Sun May 22 18:16:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch upstream
in repository python-mpd.

commit 35ed787320a88481c600688402fe7493d8117bec
Author: Jörg Thalheim <jthalheim at gmail.com>
Date:   Thu Feb 16 15:46:27 2012 +0100

    README.txt explain send_ and fetch_ variants
---
 README.txt | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/README.txt b/README.txt
index 9cf4173..899b1e3 100644
--- a/README.txt
+++ b/README.txt
@@ -68,6 +68,15 @@ for song in client.playlistinfo():
     print song["file"]
 ------------------------------------------------------------------------------
 
+Each command have a `send_` and a `fetch_` variant, which allows to send a
+mpd command and the fetch the result later. This is useful for the idle command:
+
+------------------------------------------------------------------------------
+client.send_idle()
+# do something else ...
+events = client.fetch_idle()
+------------------------------------------------------------------------------
+
 
 Contacting the author
 ---------------------

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/python-mpd.git



More information about the Pkg-mpd-commits mailing list