Re:One million lines of code ought to be enough for anybody
by Aperocky on Wednesday December 18, 2019 @11:51AM
(#21826738)
Exactly, You can put arbitrary things in a .py folder, if it doesn't run, it's your problem.
Unix didn't limit what you can put in a file, it doesn't expect your program to work when you fill your program with random strings.
The point is, the intepreter developer can feel free to optimize for everything below 1 million, putting a hard cap is pointless. The same reason that most sh file are suffixed as sh despite not needing that suffix at all.
Don't see it as a forced rule to restrict people, I can't really see how 1 million lines is a restriction on hand writen code anyways and generators can work around the problem, but more as a contract that sets the boundary on what people can expect. Python interpreter developers know they don't have to expect arbitrary large programs and can optimize their code for everything below 1 million and Python scripts/app developers know within what limits they can expect their code to work.