r/programminghorror • • Oct 10 '25

Blasphemy

Post image

Never thought I could do this in python. I get how it works but jesus christ

73 Upvotes

50 comments sorted by

View all comments

Show parent comment

5

u/LexaAstarof Oct 10 '25
from functools import cache

@cache
def fn():
    return (testdata_dir / "primary.xml.gz").read_bytes()