r/Python • • Feb 28 '13

What's the one code snippet/python trick/etc did you wish you knew when you learned python?

I think this is cool:

import this

259 Upvotes

307 comments sorted by

View all comments

Show parent comments

1

u/stillalone Feb 28 '13

How often do you do the literal_eval? It seems like it would be easier to use json.

1

u/e000 Feb 28 '13

Rarely. If you can, use json.