"Chris Calloway" <[EMAIL PROTECTED]> wrote 

> >>> dbs = set(['oracle','mysql','postgres','infomix','access'])
> >>> mine = set(['oracle','mysql','bdb'])
> >>> dbs & mine
> set(['oracle', 'mysql'])
> >>> dbs - mine
> set(['access', 'infomix', 'postgres'])

Interesting. I didn't know about the & and - set operations.
Thanks for the pointer.

Alan G

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to