>>> And what's the downside of the way I've done it?
>>
>> Its slow...
>
> Actually it is not particularly slow. The actual function code is 
> created once, when the module is compiled; creating a function 
> object and binding it to a name is pretty fast. There is a good 
> discussion here:
> http://tinyurl.com/gzfyl
>

Absolutely, I should have said its "slower", all things are relative.
For this application it probably makes no difference in real terms.

Alan G. 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to