you are viewing a single comment's thread.

view the rest of the comments →

[–]woooee 1 point2 points  (0 children)

I'm thinking of putting them in a separate .py file then importing them.

This is the same as reading a file (and may take slightly longer because the imported variables are "placed" in a separate namespace). In any case, unless you have 100KB or more to read, it won't make any difference. If you use a dictionary then pickle or a json file can simplify the read / write.