The Python Oracle

Should I put #! (shebang) in Python scripts, and what form should it take?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2 Looping

--

Chapters
00:00 Question
00:36 Accepted answer (Score 1577)
02:20 Answer 2 (Score 92)
02:46 Answer 3 (Score 43)
05:05 Answer 4 (Score 21)
06:02 Thank you

--

Full question
https://stackoverflow.com/questions/6908...

Question links:
[tornado]: https://github.com/facebook/tornado
[Django]: https://www.djangoproject.com/

Accepted answer links:
[PEP 394]: https://www.python.org/dev/peps/pep-0394...
["#!/usr/bin/env python" vs "#!/usr/local/bin/python"]: https://mail.python.org/pipermail/tutor/...

Answer 3 links:
[PEP 394 - The "python" Command on Unix-Like Systems]: https://www.python.org/dev/peps/pep-0394/

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #shell #python3x #shebang

#avk47