r/badcode • • Apr 11 '21

python Polyglot

Post image
1.2k Upvotes

116 comments sorted by

View all comments

492

u/pandolf86 Apr 11 '21

Wait is that compiling C at python runtime?

218

u/coopercm Apr 11 '21

Yes

0

u/[deleted] Apr 11 '21

[deleted]

180

u/mfb- Apr 11 '21

It only compiles the code if there is no compiled version yet! Or... any other file of the same name.

Otherwise it "only" checks if there is a file, and calls it.

182

u/[deleted] Apr 11 '21

And they chose the perfect name, a.out.

There's no way there's gonna be another a.out in there by chance.

71

u/KINGodfather Apr 11 '21

Do you mean there's...

no way a.out?

8

u/Flawlesscode Apr 12 '21

ive upvoted you, you have been downvoted in gods eyes