[Python-Dev] cpython: Add note to asyncore/asynchat recommending asyncio for new code.

Antoine Pitrou solipsis at pitrou.net
Fri Nov 22 21:07:02 CET 2013


On Fri, 22 Nov 2013 21:02:14 +0100 (CET)
guido.van.rossum <python-checkins at python.org> wrote:
> http://hg.python.org/cpython/rev/db6ae01a5f7f
> changeset:   87364:db6ae01a5f7f
> user:        Guido van Rossum <guido at dropbox.com>
> date:        Fri Nov 22 11:57:35 2013 -0800
> summary:
>   Add note to asyncore/asynchat recommending asyncio for new code.
> 
> files:
>   Doc/library/asynchat.rst |  3 +++
>   Doc/library/asyncore.rst |  3 +++
>   2 files changed, 6 insertions(+), 0 deletions(-)
> 
> 
> diff --git a/Doc/library/asynchat.rst b/Doc/library/asynchat.rst
> --- 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`.
> +

Notes should use the ".. note::" syntax.

Regards

Antoine.




More information about the Python-Dev mailing list