On Dec 13, 2008 3:12 PM, Tiger12506 <[EMAIL PROTECTED]> wrote:

> I may sound like a know-it-all, but dictionaries *are* iterators.

I'm used to that from you :P

>
> [a for a in eventData if eventData[a] < time.time()]
>
> This is more efficient. The keys method creates a list in memory first and
> then it iterates over it.

Thanks. I was fairly certain that was the case, but since I wasn't going to
test the code, I used the alternative.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to