Use JSON files as if they are Python modules
1–10 of 67 posts
Re: Use JSON files as if they are Python modules
#2I'm curious why the author would do this. Just for the fun in it?
Re: Use JSON files as if they are Python modules
#3Re: Use JSON files as if they are Python modules
#4> Disclaimer: Only do this if you hate yourself and the rest of the world. I'm curious why the author would do this. Just for the fun in it?
I nearly spit my drink out at the name, though.
Re: Use JSON files as if they are Python modules
#5If this were to be used seriously, it would make sense to other devs that the import named magic is doing some crazy stuff.
Re: Use JSON files as if they are Python modules
#6Having said that I don't think that I would use it for serious things since this isn't really the Python way and I would like my code to be most understood by others. Neat though!
Re: Use JSON files as if they are Python modules
#7Re: Use JSON files as if they are Python modules
#8> Ever since I saw this I have been unable to sleep. Please fix.
Re: Use JSON files as if they are Python modules
#9Why do all the comments act like this is bad? Seems fine to me. Explanation would be appreciated :)
Non obvious "magic" code like that tends to be frowned on in general, and especially in the python community
Re: Use JSON files as if they are Python modules
#10Why do all the comments act like this is bad? Seems fine to me. Explanation would be appreciated :)