Can global variable be passed into Python function?

Marko Rauhamaa marko at pacujo.net
Mon Mar 10 10:29:30 EDT 2014


albert at spenarnc.xs4all.nl (Albert van der Horst):

> I can't see why parsers decoders are any different. The Pentium
> assembler in my ciforth's ``forth.lab'' library has not a single if
> statement and I reckon it is a superior design. (State is kept in an
> ai blackboard fashion in bitmaps.) Forth has of course a built in
> "look it up, then execute it", which could be regarded as a giant
> switch.

Isn't this the idea of using Python dicts as hand-compiled switch
statements?


Marko



More information about the Python-list mailing list