From: pharrington Date: 2009-11-29T06:00:09+09:00 Subject: Re: Local variables can't be accessed from outside, right? On Nov 28, 3:46 pm, Ralph Shnelvar wrote: > p> From what I understand, this is because local variables are created > p> when code is *parsed*, not actually run (as method resolution would be > p> even more painful if the interpreter had to first search the object > p> tree for a particular instance method every time a new local variable > p> was defined) > > Ah!  So local variables are created when parsed but instance and class > variables are created at execution! > > I hope that's right because a lightbulb just turned on. Well its not exactly right (as Rick DeNatale explained) buts its a simple way to picture what goes on.