Can global variable be passed into Python function?

Chris Angelico rosuav at gmail.com
Fri Feb 28 19:59:44 CET 2014


On Sat, Mar 1, 2014 at 5:53 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
> A dict dispatch table is just awful.

Really? How is that? I've used them, often. Yes, there are times when
I could express something more cleanly with a C-style switch
statement, but other times the dispatch table is fundamentally
cleaner. I shared an example a few posts ago in this thread; care to
elaborate on how it's "just awful"?

ChrisA



More information about the Python-list mailing list