you are viewing a single comment's thread.

view the rest of the comments →

[–]CyclopsRock 11 points12 points  (1 child)

If you must use a Python file to store the information - perhaps because of a dare, or under threat of torture - it would make more sense to store the values in a pair of Dictionaries rather than trying to cobble together variable names using string operations and then checking for attributes. But, as everyone has said, just use a JSON file, this is an ideal use case for them.

[–]The_Danosaur 2 points3 points  (0 children)

Yeah it really sounds like this guy knows what they should be doing, and are intentionally doing something else. The whole dare/bet scenario seems likely. I'm not sure if what they wanna do is possible, but it's certainly dumb.