From: Guido van Rossum Date: Fri, 22 Nov 2013 19:57:35 +0000 (-0800) Subject: Add note to asyncore/asynchat recommending asyncio for new code. X-Git-Tag: v3.4.0b1~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa407758176affde0c81301e3c8856dd73e6b1c3;p=python Add note to asyncore/asynchat recommending asyncio for new code. --- diff --git a/Doc/library/asynchat.rst b/Doc/library/asynchat.rst index 55c61d7e68..7050f0c5a3 100644 --- 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. diff --git a/Doc/library/asyncore.rst b/Doc/library/asyncore.rst index 8f494d0e58..d0a30f8ae6 100644 --- 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.