Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(71)

Unified Diff: Doc/library/asyncore.rst

Issue 744: [issue1736190] asyncore/asynchat patches (Closed) SVN Base: http://svn.python.org/view/*checkout*/python/trunk/
Patch Set: Created 1 year, 7 months ago , Downloaded from: http://bugs.python.org/file10196/full_async_patch.patch
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
Index: Doc/library/asyncore.rst
===================================================================
--- Doc/library/asyncore.rst (revision 62704)
+++ Doc/library/asyncore.rst (working copy)
@@ -222,7 +222,21 @@
flushed). Sockets are automatically closed when they are
garbage-collected.
+.. class:: file_dispatcher()
+ A file_dispatcher takes a file descriptor or file object along with an optional
GvR 2008/05/05 22:02:22 Mind keeping the line length under 80 chars?
josiah.carlson 2008/05/21 19:09:43 On 2008/05/05 22:02:22, GvR wrote: > Mind keeping
+ map argument and wraps it for use with the :cfunc:`poll`\ or :cfunc:`loop`\
+ functions. If provided a file object or anything with a :cfunc:`fileno`\
+ method, that method will be called and passed to the :class:`file_wrapper`
+ constructor.
+ Availability: UNIX
+.. class::file_wrapper()
+ A file_wrapper takes an integer file descriptor and calls os.dup() to duplicate
+ the handle so that the original handle may be closed independently of the
+ file_wrapper. This class implements sufficient methods to emulate a socket for
+ use by the file_dispatcher class.
+ Availability: UNIX
+
.. _asyncore-example:
asyncore Example basic HTTP client

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497