Generating nested code with context managers

python at bdurham.com python at bdurham.com
Tue May 4 17:43:15 EDT 2010


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



More information about the Python-list mailing list