3 ms·
How would it know which version a file was supposed to use?
by nhumrich 6y ago
How would it know which version a file was supposed to use?
- CamperBob2 6y agoSame way a shell script specifies what interpreter to run, maybe? Meaning some form of standardized comment header.
- EamonnMR 6y agoIn that case you wouldn't need a compatible interpreter, you'd just specify the interpreter you want in the shebang. Python does not usually use shebangs because you're supposed to run in a virtualenv, not shebang your files to your system python.