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 christian.heimes
Date 2013-10-09.13:20:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.

- 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 to get its location.

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