Dave Jones added the comment:
Tried to edit subject to make it easier to search
--
title: import subprocess hangs for ~25 seconds, 700+ files in dir - py 2.7.3,
2.6.6 - import subprocess hangs for ~25 seconds, time.py file in dir - py
2.7.3, 2.6.6
Charles-François Natali added the comment:
You happen to have a script named time.py, so when the subprocess module is
imported, it imports this script instead of the correct time module.
Nothing is wrong, closing.
--
nosy: +neologix
resolution: - invalid
stage: - committed/rejected
Ian Cordasco added the comment:
Dave, at some point during the import of subprocess the time module is
apparently imported. Because of how imports work, it is importing your local
copy instead of the standard library version.
I would wager money that if you ran time python time.py (on your