Message199295
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). |
|
Date |
User |
Action |
Args |
2013-10-09 13:20:34 | christian.heimes | set | recipients:
+ christian.heimes |
2013-10-09 13:20:34 | christian.heimes | set | messageid: <1381324834.76.0.705779220837.issue19205@psf.upfronthosting.co.za> |
2013-10-09 13:20:34 | christian.heimes | link | issue19205 messages |
2013-10-09 13:20:34 | christian.heimes | create | |
|