Oct-29-2019, 09:39 PM
1) Books are always outdated the moment they're printed, there's nothing special about python in that regard.
2) The shebang line is useless on windows, because windows runs programs based on file extension. Other operating systems peek at the first line couple lines to look for which interpreter should be used.
3) No, the shebang is not obsolete, and using
2) The shebang line is useless on windows, because windows runs programs based on file extension. Other operating systems peek at the first line couple lines to look for which interpreter should be used.
3) No, the shebang is not obsolete, and using
#!/usr/bin/env python3
will help ensure your program runs on the most platforms.