This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# vi:si:et:sw=4:sts=4:ts=4 | |
import smtplib | |
import time | |
import imaplib | |
import email | |
IMAP_SERVER = "imap.gmail.com" | |
IMAP_PORT = 993 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# unhandled StopIteration bug | |
outer = range(10) | |
inner = iter([]) | |
for i in outer: | |
print(i) | |
# StopIteration from inner will stop "outer" | |
next(inner) |