Python for loop slows and evenutally hangs
问题 I'm totally new to Python (as of half an hour ago) and trying to write a simple script to enumerate users on an SMTP server. The users file is a simple list (one per line) of usernames. The script runs fine but with each iteration of the loop it slows until, around loop 14, it seems to hang completely. No error - I have to ^c. Can anyone shed some light on the problem please? TIA, Tom #!/usr/bin/python import socket import sys if len(sys.argv) != 2: print "Usage: vrfy.py <username file>" sys