Inspired by a bug from code review today, please enjoy this utterly cursed :python: expression:

if True is ('mystr' in list_of_strings):
....

Follow

@padraic_padraic truly amazing, this gave the idea of parsing python code and then adding these random cursed AST transformations to the code and spitting it back out

· · Web · 1 · 0 · 1
Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!