November 19th, 2003, 03:39 PM
Has any of you ever used the cmd module? I read the document at the Python homepage, but I didn't really understand how to use the module. If some could show me some code, I'd really apprieciate it.
Before you criticize someone, walk a mile in their shoes, that way when you do criticize them, you're a mile away and you have their shoes!
November 30th, 2003, 01:17 AM
self.prompt = "Reader:"
print "Gets all the messages in your mailbox."
msg = mb.next()
if not msg:
msg["body"] = msg.fp.read()
print "Quits you out of Reader."
def do_quit(self, line):
if __name__ == '__main__':
readbox = Reader()
Last edited by Gerardoj; November 30th, 2003 at 01:21 AM.