[sage-support] Re: Question about scoping

2012-01-17 Thread Keshav Kini
OK, but that only explains why it injects things into a scope. Why does it inject them into the *global* scope, and not the local scope? Or is this not possible? -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this group, send email to sage-support@googlegroups.com To un

[sage-support] Re: Question about scoping

2012-01-17 Thread Keshav Kini
On Tuesday, January 17, 2012 6:06:25 PM UTC+8, luisfe wrote: > On Jan 16, 5:53 pm, Ed Scheinerman > wrote: > > I'm confused by the fact that variables defined inside functions can > > "leak out" and become global variables. Here's what I've noticed. > > The problem is twith the function var.

[sage-support] Re: Question about scoping

2012-01-17 Thread luisfe
On Jan 16, 5:53 pm, Ed Scheinerman wrote: > I'm confused by the fact that variables defined inside functions can > "leak out" and become global variables. Here's what I've noticed. The problem is twith the function var. According to its documentation: (var?) "The new variable is both returned