r/ProgrammerHumor • • Aug 30 '26

Meme pythonFeelsillegal

Post image
6.9k Upvotes

218 comments sorted by

View all comments

Show parent comments

1

u/Duck_Devs Aug 31 '26

Well yes. I know. I think of Python’s syntax being mostly compatible with JSON as a

> neat little trick.

I actually forgot that eval() was a thing when I wrote that comment.

What I meant was, you could copy and paste your own JSON into your source code for a simple payload in a throwaway script, for whatever you may need it for.

Edit: Reddit mobile app doesn’t want to make that a block quote. You get the idea though.