Jan-27-2017, 01:29 AM
I learned how to program 40 years ago (Fortran, cobol, etc -- you probably never heard of them), when the languages were not as powerful as python and others -- so my experience was with using many variables. I have only recently (6 months) started programming again.
I am reading and writing a file that I create -- no outside reading and writing -- I have total control. My program will read a bunch of variables from a file, the variables will be displayed in a GUI (not written yet), the user will change one or more of the variables, which will trigger some processing, and the variables will be saved when user is finished.
given that, which way -- dictionary described by you, or the named tuple suggested by Ofnuts, or something else -- should I proceed with? Thank you.
I am reading and writing a file that I create -- no outside reading and writing -- I have total control. My program will read a bunch of variables from a file, the variables will be displayed in a GUI (not written yet), the user will change one or more of the variables, which will trigger some processing, and the variables will be saved when user is finished.
given that, which way -- dictionary described by you, or the named tuple suggested by Ofnuts, or something else -- should I proceed with? Thank you.