[Tutor] dict vs several variables?

Leam Hall leamhall at gmail.com
Fri Feb 17 10:46:29 CET 2012


I'm building a program that uses one of my own modules for a bunch of 
formula defs and another module for the tkinter GUI stuff. There are 
half a dozen input variables and about the same in calculated variables. 
Is it better/cleaner to just build a global dict and have everything go 
into it or pass multiple arguments to each function and have it return 
the calculated value?

Thanks!

Leam



More information about the Tutor mailing list