Skip to content

Commit aa40775

Browse files
author
Guido van Rossum
committed
Add note to asyncore/asynchat recommending asyncio for new code.
1 parent 5467da8 commit aa40775

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Doc/library/asynchat.rst

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
--------------
1212

13+
Note: This module exists for backwards compatibility only. For new code we
14+
recommend using :module:`asyncio`.
15+
1316
This module builds on the :mod:`asyncore` infrastructure, simplifying
1417
asynchronous clients and servers and making it easier to handle protocols
1518
whose elements are terminated by arbitrary strings, or are of variable length.

Doc/library/asyncore.rst

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
--------------
1515

16+
Note: This module exists for backwards compatibility only. For new code we
17+
recommend using :module:`asyncio`.
18+
1619
This module provides the basic infrastructure for writing asynchronous socket
1720
service clients and servers.
1821

0 commit comments

Comments
 (0)