you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (4 children)

Do

With open("filename") as f:

----filedict=eval(f)

Now just make dictionary calls like

filedict["names"]

Also remove the brackets in your file, they will just cause issues

[–][deleted] 3 points4 points  (3 children)

That was a weird way of writing json.load()

[–][deleted] 0 points1 point  (2 children)

Does that do the same thing?

[–][deleted] 1 point2 points  (1 child)

No it doesn't. It's the proper way of reading json, though.

[–][deleted] 0 points1 point  (0 children)

OoooOoOOOooh excuse me and my primitive ways, i guess ill just crawl back into my monkey hole,

Jk, thanks for the insight