Shashwat Anand <[email protected]> added the comment: "import imaplib
HOST="imap.gmail.com" PORT=993 USERNAME="[email protected]" PASSWORD="password" server = imaplib.IMAP4_SSL(host=HOST, port=PORT) server.login(USERNAME, PASSWORD) def f(): print server.select("INBOX") print server.uid("FETCH", "1:*", "(UID FLAGS BODY.PEEK[HEADER.FIELDS (Subject)])") Call the f() function and then wait about about an hour. Call f() again and server.select() will not return but take all CPU." Tried to reproduce this on Python 2.7RC1. Seemed Ok to me. Took some 3 seconds to call f() not only once, but twice, thrice. ---------- nosy: +l0nwlf _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue9010> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
