Diez B. Roggisch
deets at nospam.web.de
Thu Oct 6 15:19:40 CEST 2005
> I got it!
> Its vey insecure, and it is not guaranteed to work. Fine.
> Now what would you do if you wanted to pass a lot of variables (like a
> thousand) to a function and did not wanted the declare them in the
> function header?
use a dict or list? This is almost certainly a design smell - and a
pretty strong one, too.. Nobody is using so many variables and actually
typing them - so there certainly is some naming scheme that could be
used to access the values from a dict.
Or, to put it differently: show us the code that uses thousands of
variables, and we show you how to improve that.
More information about the Python-list