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 . .

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

Re: Try Python update

2006-01-03 Thread browerg
I like the form, no matter what its limitations may be. Three notes: It might be a good way to catch newbi mistakes (those are the kind I make :P, thereby providing a feedback loop to improved error messages. I had no trouble with from math import * followed by print pi, but there was no