Author christian.heimes
Recipients christian.heimes
Date 2013-10-09.13:20:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381324834.76.0.705779220837.issue19205@psf.upfronthosting.co.za>
In-reply-to
Content
The site module is loaded at every startup. Nowadays it imports the re and the sysconfig modules. The re module is used for venv config parsing and inside sysconfig. sysconfig is loaded to find the location of the user's site-packages directory.

Suggestions:
- Only import re and compile CONFIG_LINE when a venv config file is found

- Don't rely on sysconfig for user's site-packages directory. Instead the sysconfig module should rely on site.py to get its location.

Without re and sysconfig Python would import only 45 instead of 56 modules at startup (tested on Linux).
History
Date User Action Args
2013-10-09 13:20:34christian.heimessetrecipients: + christian.heimes
2013-10-09 13:20:34christian.heimessetmessageid: <1381324834.76.0.705779220837.issue19205@psf.upfronthosting.co.za>
2013-10-09 13:20:34christian.heimeslinkissue19205 messages
2013-10-09 13:20:34christian.heimescreate