This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Mariatta, gvanrossum, vstinner, yselivanov
Date 2017-04-19.21:40:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492638001.52.0.74664383774.issue28533@psf.upfronthosting.co.za>
In-reply-to
Content
> asyncore is still used in several tests and should be replaced.

Here is the list of Python files using asyncore:

haypo@selma$ grep -l asyncore $(find -name "*.py")
./Lib/asyncore.py
./Lib/asynchat.py
./Lib/test/test_smtpd.py
./Lib/test/test_asyncore.py
./Lib/test/test_smtplib.py
./Lib/test/test_os.py
./Lib/test/test_ssl.py
./Lib/test/test_logging.py
./Lib/test/libregrtest/save_env.py
./Lib/test/test_asynchat.py
./Lib/test/test_pyclbr.py
./Lib/test/test_support.py
./Lib/test/test_poplib.py
./Lib/test/test_ftplib.py
./Lib/smtpd.py

smtpd has been rewritten with asyncio:
http://aiosmtpd.readthedocs.io/

The documentation of the smtpd module already points to aiosmtpd.

libregrtest/save_env.py only checks that asyncore.socket_map is not modified, we can keep it until asyncore is really removed.

test_support.py only tests that it's possible to have a "clean" import of asyncore, it can be easily be replaced later.

The list can reduced to:

./Lib/test/test_smtplib.py
./Lib/test/test_os.py
./Lib/test/test_ssl.py
./Lib/test/test_logging.py
./Lib/test/test_pyclbr.py
./Lib/test/test_poplib.py
./Lib/test/test_ftplib.py
History
Date User Action Args
2017-04-19 21:40:01vstinnersetrecipients: + vstinner, gvanrossum, yselivanov, Mariatta
2017-04-19 21:40:01vstinnersetmessageid: <1492638001.52.0.74664383774.issue28533@psf.upfronthosting.co.za>
2017-04-19 21:40:01vstinnerlinkissue28533 messages
2017-04-19 21:40:01vstinnercreate