Can global variable be passed into Python function?
Mark H. Harris
harrismh777 at gmail.com
Sat Mar 1 02:29:13 CET 2014
On Friday, February 28, 2014 7:10:49 PM UTC-6, Mark Lawrence wrote:
> I think you're talking nonsense. I've been happily using dict dispatch
> tables for years and, like Steven and presumably many others, find them
> dead easy to read. Perhaps you should invest in a better optician
> and/or glasses?
That's the rub right there... yes, they are easy to read for someone who uses them for many years... but not to the average coder, or scientist who just happens to be using python (like she may have used BASIC in the past, or someone else who has no idea at this stage of their python career what a dict is, let alone what a dict dispatch table is (I like to think of virtual function table myself, which its not) ... that is really the point.
Readability is important when the reader needs eye glasses... that is the whole point in a nutshell.
More information about the Python-list