[petsc-dev] script.py

Jed Brown jed at 59a2.org
Sun Mar 14 15:02:52 CDT 2010


On Sun, 14 Mar 2010 14:57:56 -0500, Matthew Knepley <knepley at gmail.com> wrote:
> Doesn't global do exactly this?

Well, global puts it in the *global* scope, which can cause pretty much
arbitrary nonlocal effects depending on how those variables are used in
other contexts.  Closing over the variables in the present scope keeps
the effects local.

Jed



More information about the petsc-dev mailing list