![](https://secure.gravatar.com/avatar/f3ba3ecffd20251d73749afbfa636786.jpg?s=120&d=mm&r=g)
Aug. 8, 2011
4:13 a.m.
On Mon, Aug 8, 2011 at 2:11 PM, Nick Coghlan <ncoghlan@gmail.com> wrote:
@contextmanager def scope(chain=None): if scope is None: yield ChainMap({}) else: yield chain.new_child()
s/scope/chain/ on the first line of the function body. Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia