From: "krusty.ar@..." Date: 2008-07-03T03:22:04+09:00 Subject: Re: nested methods good or bad design On Jul 2, 2:00 pm, ThoML wrote: > > Y get it, it's as if each method defines a namespace, can > > youdosomething like a()::b() from ouside a? > > I'd say no. You'd probably have to ask this on a python list for more > details. I don't think this would make much sense though: > > --> def a(x, y): > ...     def b(z): > ...         return z * y > ...     return x * b(4) > ... > --> a(2, 3) > 24 > > What should a::b(10) return if this were possible? I was asking out of mere curiosity, but in any case it should be something like a(2,3)::b(4), but it probably doesn't make sense. With respect to de OP, I still find it a good practice, including your correction about the instance variable. Lucas.