Design question.

Lacrima Lacrima.Maxim at
Mon Jul 20 08:20:26 EDT 2009


I am newbie in python and I have really simple question, but I need
your advice to know how to do best.
I need to store a number of dictionaries in certain place. I've
decided to store them in a separate module.
Like this:
dict1 = {....}
dict2 = {....}
dict3 = {....}

Then, when I need any dictionary, I can access it:
import dicts

Is it a good practice? Or should I store them as class attributes or
anything else?

Thanks in advance.

With regards, Max
(sorry if my English isn't very proper)

More information about the Python-list mailing list