X-Git-Url: http://dolda2000.com/gitweb/?p=pdm.git;a=blobdiff_plain;f=pdm%2Fcli.py;h=46276becf380e0432218b9ba3d14a23f75d0518d;hp=81246b7fd439fed65bbb9ca8f2adf0b42f3a0786;hb=ebd7a8ba1cfa6feee987b7d7ac69f50a2e0a345e;hpb=73c1ef8bb613a660f37fbe0cfe50b74fc5925229 diff --git a/pdm/cli.py b/pdm/cli.py index 81246b7..46276be 100644 --- a/pdm/cli.py +++ b/pdm/cli.py @@ -1,7 +1,9 @@ -"""Management for daemon processes +"""Python Daemon Management -- Client functions -This module provides some client support for the daemon management -provided in the pdm.srv module. +This module implements the client part of the PDM protocols. The +primary objects of interest are the replclient and perfclient classes, +which implement support for their respective protocols. See their +documentation for details. """ import socket, pickle, struct, select, threading @@ -313,6 +315,11 @@ class perfclient(client): of the slash. For instance, find("pdm.perf.sysres/cputime") will return the built-in attribute for reading the CPU time used by the server process. + + The proxy objects returned by this function are cached and the + same object are returned the next time the same name is + requested, which means that they are kept live until the + client connection is closed. """ ret = self.names.get(name) if ret is None: