Re: [Tutor] screen scraping web-based email

2007-04-18 Thread James Cunningham
On Wed, 18 Apr 2007 12:15:26 -0400, Kent Johnson wrote: > James Cunningham wrote: > >> I'd like to write a daemon that logs into the text-based web client >> every so often, scrapes for new email, and uses smtplib to send that >> email to another email address. But I

[Tutor] screen scraping web-based email

2007-04-18 Thread James Cunningham
Hello. I've been playing with Python for a while, and even have some small scripts in my employ, but I have a bit of a problem and I'm not sure how to proceed. I'm starting graduate school (econ!) in the Fall; the school I'll be attending uses Lotus for email and allows neither forwarding nor POP/

Re: [Tutor] Starting over with Python

2006-12-14 Thread James Cunningham
Sum works just fine, as others have said. A more generic way to do this: reduce(lambda x, y: x + y, (i for i in range(100) if i % 2)) Reduce iterates through the list, calling x + y on the next element in the list and the previous sum, in effect summing the whole thing. I might do the following:

[Tutor] review of beginner's code requested

2006-11-14 Thread James Cunningham
Hello. I'm new to Python; for a project to get to know the language I wrote up an api for representing finite topologies, and for subsets of topologies for which the orbit (the number of ways to use closure, interior, and complement operators to get separate sets) is fourteen. It can be used like t