cpython: db6ae01a5f7f (original) (raw)
Mercurial > cpython
changeset 87364:db6ae01a5f7f
Add note to asyncore/asynchat recommending asyncio for new code.
Guido van Rossum guido@dropbox.com | |
---|---|
date | Fri, 22 Nov 2013 11:57:35 -0800 |
parents | 14204cb465ce |
children | e8333e91e517 8a130fd92255 cd09766bb18f |
files | Doc/library/asynchat.rst Doc/library/asyncore.rst |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-)[+] [-] Doc/library/asynchat.rst 3 Doc/library/asyncore.rst 3 |
line wrap: on
line diff
--- a/Doc/library/asynchat.rst
+++ b/Doc/library/asynchat.rst
@@ -10,6 +10,9 @@
--------------
+Note: This module exists for backwards compatibility only. For new code we
+recommend using :module:asyncio
.
+
This module builds on the :mod:asyncore
infrastructure, simplifying
asynchronous clients and servers and making it easier to handle protocols
whose elements are terminated by arbitrary strings, or are of variable length.
--- a/Doc/library/asyncore.rst
+++ b/Doc/library/asyncore.rst
@@ -13,6 +13,9 @@
--------------
+Note: This module exists for backwards compatibility only. For new code we
+recommend using :module:asyncio
.
+
This module provides the basic infrastructure for writing asynchronous socket
service clients and servers.