Why Python File Read (Or Readlines) Is Bad Practice

Published: 29 June 2026
on channel: Jakubication
28
2

This video answers why Python file read (or readlines) is bad practice. This is because both read and readlines read the entire file into memory all at once. So, for a big enough file, reading said file into memory can take a very long time. This video also shows a method alternative to read or readlines.

#python #pythontutorial #learntocode


On this page of the site you can watch the video online Why Python File Read (Or Readlines) Is Bad Practice with a duration of hours minute second in good quality, which was uploaded by the user Jakubication 29 June 2026, share the link with friends and acquaintances, this video has already been watched 28 times on youtube and it was liked by 2 viewers. Enjoy your viewing!