[Python-checkins] CVS: python/dist/src/Doc/lib libasyncore.tex,1.9,1.10
Fred L. Drake
fdrake@users.sourceforge.net
Wed, 05 Dec 2001 13:37:52 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv5887/lib
Modified Files:
libasyncore.tex
Log Message:
asyncore.loop() description contributed by Skip Montanaro.
This closes SF bug #489513.
Index: libasyncore.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libasyncore.tex,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** libasyncore.tex 2001/07/14 02:50:55 1.9
--- libasyncore.tex 2001/12/05 21:37:50 1.10
***************
*** 57,60 ****
--- 57,74 ----
\end{classdesc}
+ \begin{funcdesc}{loop}{\optional{timeout\optional{, use_poll\optional{,
+ map}}}}
+ Enter a polling loop that only terminates after all open channels
+ have been closed. All arguments are optional. The \var{timeout}
+ argument sets the timeout parameter for the appropriate
+ \function{select()} or \function{poll()} call, measured in seconds;
+ the default is 30 seconds. The \var{use_poll} parameter, if true,
+ indicates that \function{poll()} should be used in preference to
+ \function{select()} (the default is false). The \var{map} parameter
+ is a dictionary that gives a list of channels to watch. As channels
+ are closed they are deleted from their map. If \var{map} is
+ omitted, a global map is used.
+ \end{funcdesc}
+
This set of user-level events is larger than the basics. The
full set of methods that can be overridden in your subclass are: