Add note to asyncore/asynchat recommending asyncio for new code.

This commit is contained in:
Guido van Rossum 2013-11-22 11:57:35 -08:00
parent 5467da860c
commit aa40775817
2 changed files with 6 additions and 0 deletions

View file

@ -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 This module builds on the :mod:`asyncore` infrastructure, simplifying
asynchronous clients and servers and making it easier to handle protocols asynchronous clients and servers and making it easier to handle protocols
whose elements are terminated by arbitrary strings, or are of variable length. whose elements are terminated by arbitrary strings, or are of variable length.

View file

@ -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 This module provides the basic infrastructure for writing asynchronous socket
service clients and servers. service clients and servers.