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 barry, brett.cannon, eric.snow, ncoghlan, serhiy.storchaka, terry.reedy, vstinner
Date 2015-10-15.16:15:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444925730.55.0.462313688522.issue25159@psf.upfronthosting.co.za>
In-reply-to
Content
Importing a module looks slow to me. Importing a module which is a an *empty* .py file takes ~160 us.

$ python3 -I -m timeit -s "open('slow.py', 'wb').close(); import sys; import slow" "del sys.modules['slow']; import slow"
10000 loops, best of 3: 156 usec per loop

The difference betwen Python 3.4 and 3.5 is that enum.py imports indirectly more modules. The following two imports were added to types.py in Python 3.5:

import functools as _functools         
import collections.abc as _collections_abc
History
Date User Action Args
2015-10-15 16:15:30vstinnersetrecipients: + vstinner, barry, brett.cannon, terry.reedy, ncoghlan, eric.snow, serhiy.storchaka
2015-10-15 16:15:30vstinnersetmessageid: <1444925730.55.0.462313688522.issue25159@psf.upfronthosting.co.za>
2015-10-15 16:15:30vstinnerlinkissue25159 messages
2015-10-15 16:15:30vstinnercreate