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 serhiy.storchaka
Recipients berker.peksag, bethard, paul.j3, rhettinger, serhiy.storchaka, vstinner, wolma, yan12125
Date 2017-04-26.09:39:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493199550.68.0.224601134986.issue30152@psf.upfronthosting.co.za>
In-reply-to
Content
In general I agree with Raymond's principle and I am not very happy doing these changes. But heavy startup is a sore spot of CPython.

For comparison Python 2.7 and optparse:

$ python -c 'import sys; s = set(sys.modules); import argparse; print(len(s), len(sys.modules), len(set(sys.modules) - s))'
(43, 63, 20)
$ python -S -c 'import sys; s = set(sys.modules); import argparse; print(len(s), len(sys.modules), len(set(sys.modules) - s))'
(15, 57, 42)
$ python -c 'import sys; s = set(sys.modules); import optparse; print(len(s), len(sys.modules), len(set(sys.modules) - s))'
(43, 56, 13)
$ python -S -c 'import sys; s = set(sys.modules); import optparse; print(len(s), len(sys.modules), len(set(sys.modules) - s))'
(15, 50, 35)
History
Date User Action Args
2017-04-26 09:39:10serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, bethard, vstinner, berker.peksag, paul.j3, wolma, yan12125
2017-04-26 09:39:10serhiy.storchakasetmessageid: <1493199550.68.0.224601134986.issue30152@psf.upfronthosting.co.za>
2017-04-26 09:39:10serhiy.storchakalinkissue30152 messages
2017-04-26 09:39:10serhiy.storchakacreate