4 ms·
Following your argument I should be able to write any random words to a file and expect the Python interpreter to run it as the program I intended? Don't see i
by aequitas 7y ago
Following your argument I should be able to write any random words to a file and expect the Python interpreter to run it as the program I intended?
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.
- Aperocky 7y agoExactly, 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.