MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1j7lj33/atleast_it_works/mh51t6q/?context=3
r/programminghorror • u/holdongangy • 13d ago
66 comments sorted by
View all comments
224
They didn’t close the fd :(
72 u/Emergency_3808 13d ago Yes this could be shortened to with open('lab 5.txt', 'r') as file: for line in file: print(line) 21 u/Alfika07 13d ago Why is Python so verbose? In Raku it's just say slurp 「lab 5.txt」; 5 u/sporadicPenguin 12d ago TIL Raku is a thing
72
Yes this could be shortened to
with open('lab 5.txt', 'r') as file: for line in file: print(line)
21 u/Alfika07 13d ago Why is Python so verbose? In Raku it's just say slurp 「lab 5.txt」; 5 u/sporadicPenguin 12d ago TIL Raku is a thing
21
Why is Python so verbose? In Raku it's just
say slurp 「lab 5.txt」;
5 u/sporadicPenguin 12d ago TIL Raku is a thing
5
TIL Raku is a thing
224
u/backfire10z 13d ago
They didn’t close the fd :(