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 christian.heimes
Recipients bmwiedemann, christian.heimes, vstinner
Date 2017-05-05.16:08:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <F861674D-6F13-4E7E-BC41-7DCB0A5E8AC9@cheimes.de>
In-reply-to <1493999861.9.0.0606405581705.issue30276@psf.upfronthosting.co.za>
Content
If import of hashlib is slowed down by OpenSSL, then import of ssl module will be even slower.

Am 5. Mai 2017 17:57:41 MESZ schrieb "Bernhard M. Wiedemann" <report@bugs.python.org>:
>
>Bernhard M. Wiedemann added the comment:
>
>This might work in some places, but if you look at real-world users
>like
>urllib3/util/ssl_.py
>> from hashlib import md5, sha1, sha256
>
>or
>twisted/words/protocols/jabber/xmlstream.py
>> from hashlib import sha1
>
>It would probably not need any openssl at all, but still gets the full
>penalty time from the import.
>So you get all or nothing.
>It would be nice to just get access to those few hashes you need for
>your protocal (because you certainly do not want to reimplement it).
>
>----------
>
>_______________________________________
>Python tracker <report@bugs.python.org>
><http://bugs.python.org/issue30276>
>_______________________________________
History
Date User Action Args
2017-05-05 16:08:52christian.heimessetrecipients: + christian.heimes, vstinner, bmwiedemann
2017-05-05 16:08:52christian.heimeslinkissue30276 messages
2017-05-05 16:08:52christian.heimescreate