Terry, > So here is my updated (3.1) proof-of-concept version.
Very clever! An excellent example of how to use the 'with' statement with something besides the traditional file open example. Not the original OP, but thank you anyway. Malcolm -- http://mail.python.org/mailman/listinfo/python-list