How to test if one dict is subset of another?

Jay Tee jeff.templon at gmail.com
Tue Feb 20 11:55:39 EST 2007


On Feb 20, 9:12 am, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
 >       do_something()
>
> you'd just write:
>
>     for j in (index['user']['jeff'] & index['state']['running']):
>         do_something()

Hi,

it looks very cool, except that one of the constraints mentioned is
that the solution has to work properly on pythons 2.2 and 2.3.
production systems, certified OS releases, that sort of stuff ...
can't just upgrade a few thousand machines worldwide for my little
program ;-)

Thanks ... I took the previous poster's suggestion (had also been
suggested earlier) and built cached versions of the job lists, indexed
on common queries, while building the master job list.

JT




More information about the Python-list mailing list