Can global variable be passed into Python function?

Marko Rauhamaa marko at pacujo.net
Sun Mar 2 09:00:39 CET 2014


Grant Edwards <invalid at invalid.invalid>:

> any decent compiler should be able to generate the same code for a
> switch statement and for an equivalent chained if/else.

It's not so easy to be decent, especially when it comes to a language as
dynamic as Python.


Marko



More information about the Python-list mailing list