Python Forum
Is the #! (shebang) line obsolete?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is the #! (shebang) line obsolete?
#3
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 #!/usr/bin/env python3 will help ensure your program runs on the most platforms.
Reply


Messages In This Thread
RE: Is the #! (shebang) line obsolete? - by nilamo - Oct-29-2019, 09:39 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020