Re: Re: scope question in a switch mixin

2008-01-16 Thread browerg
John, Thanks for writing, and I'm sorry it's taken so long to get back to you. Python is fun for me -- dinner guests and my boss got in the way. >> The code ... is the result of noodling around with switches as a learning >> tool. I've played with python for a few years, but I'm self-taught, so

Re: scope question in a switch mixin

2008-01-11 Thread John Machin
[EMAIL PROTECTED] wrote: > The code that follows is the result of noodling around with switches as a > learning tool. I've played with python for a few years, but I'm self-taught, > so . . . > > Class Switch builds a set of functions. Method switch executes one of them > given a value of the sw

scope question in a switch mixin

2008-01-11 Thread browerg
The code that follows is the result of noodling around with switches as a learning tool. I've played with python for a few years, but I'm self-taught, so . . . Class Switch builds a set of functions. Method switch executes one of them given a value of the switch variable. My question is, why a