If you care about not wasting resources you could just not use python and a language that won't waste resources everywhere
2026-06-19 13:31:01
12
Philipp Baumgartner :
Java (with try (…)) and C# (with using …) have similar and much better alternatives
2026-06-18 17:32:16
16
({¡}) :
Oh no! You’d have to remember to close the file !!! Who could possibly handle such complexity?!?!
2026-06-19 03:23:23
3
Jeff :
I believe 'with' also cleans up if something crashes the program before it gets to the end, but if you are manually closing it a program crash can stop the close function from running so you're left with a locked file.
2026-06-18 17:01:24
39
Bay0net :
i know what it does but i still am confused cause why the word "with" ?
2026-06-18 13:53:11
6
Rob :
Useless extra semantics 😒
2026-06-19 05:23:49
2
Ashley Craig335 :
Woulda been cool if my lecturer explained it like this 4 years ago
2026-06-19 03:59:55
1
CUTEME :
ahh yes the "close" key word my 2 days no sleep problem wondering why my system freeze every 5 minutes of use
2026-06-18 17:00:39
3
Duamutef :
C++ -> RAII.
~std::fstream calls close
2026-06-18 21:44:05
2
🥀random tiktok user🥀 :
now explain what the keyword while has to do with loops
2026-06-18 17:42:51
1
francistumusiime94 :
i want to learn
2026-06-19 18:59:08
1
il quale🤔👨⚖️🦵🥄 :
i hate python
2026-06-19 12:08:48
1
aarond0623 :
Not just if you forget but say you get an error while processing the file and never reach close.
2026-06-18 20:48:42
2
elsinziko :
The wasted resources are insignificant to OS. More important is nice cleanup and flush buffors on program site as well as kernel site.
2026-06-18 21:10:53
2
Gold🪙 :
first
2026-06-18 12:05:25
2
MrArien :
just c# using xd
2026-06-18 20:38:59
2
Jake L :
q basic line 10 goto line 20....😂
2026-06-18 18:09:22
1
Lucas Perez :
viene de sql ?
2026-06-18 22:21:25
1
okorte :
👍👍👍
2026-06-18 13:39:49
1
To see more videos from user @awdev_6, please go to the Tikwm
homepage.