mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
[Bug #1181939] Remove incorrect text about __init__; move map discussion into a separate paragraph
This commit is contained in:
parent
597bd60ef1
commit
1a5152d94b
1 changed files with 4 additions and 5 deletions
|
|
@ -53,12 +53,11 @@ service) is closed.
|
||||||
\function{poll()} call, measured in seconds; the default is 30 seconds.
|
\function{poll()} call, measured in seconds; the default is 30 seconds.
|
||||||
The \var{use_poll} parameter, if true, indicates that \function{poll()}
|
The \var{use_poll} parameter, if true, indicates that \function{poll()}
|
||||||
should be used in preference to \function{select()} (the default is
|
should be used in preference to \function{select()} (the default is
|
||||||
\code{False}). The \var{map} parameter is a dictionary whose items are
|
\code{False}).
|
||||||
the channels to watch. As channels are closed they are deleted from their
|
|
||||||
map. If \var{map} is omitted, a global map is used (this map is updated
|
|
||||||
by the default class \method{__init__()} -- make sure you extend, rather
|
|
||||||
than override, \method{__init__()} if you want to retain this behavior).
|
|
||||||
|
|
||||||
|
The \var{map} parameter is a dictionary whose items are
|
||||||
|
the channels to watch. As channels are closed they are deleted from their
|
||||||
|
map. If \var{map} is omitted, a global map is used.
|
||||||
Channels (instances of \class{asyncore.dispatcher}, \class{asynchat.async_chat}
|
Channels (instances of \class{asyncore.dispatcher}, \class{asynchat.async_chat}
|
||||||
and subclasses thereof) can freely be mixed in the map.
|
and subclasses thereof) can freely be mixed in the map.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue