Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    @Arafangion you'll probably find this question useful. TL;DR: symbolhound.com Commented Jan 8, 2015 at 12:54
  • 4
    "Even on Windows, where the shebang line does not determine the interpreter to be run, you can pass options to the interpreter by specifying them on the shebang line." That is simply false; if such a thing happens, it's because the interpreter itself is processing the shebang line. If the interpreter has no special recognition for shebang lines, then no such thing happens. Windows doesn't do anything with shebang lines." What you may be describing in this case is the python launcher: python.org/dev/peps/pep-0397. Commented May 24, 2019 at 22:33
  • Windows has no provision for making a ".py" file executable at all. Python files appear executable from the Explorer shell via an association of the .py suffix as a document to an application. If that application is the Python-specific pylauncher, then you get hash bang processing. That's it. Commented May 24, 2019 at 22:36
  • 2
    @Shuzheng Please read the sentence carefully. It says neither what you or Kaz think it says. For example, perl on Windows does not care one iota that there is no /usr/bin/perl, but will pay attention to the options passed to it. Commented Nov 14, 2019 at 1:08
  • 2
    @Shuzheng _Please read the sentence carefully. It says neither what you or Kaz think it says._ Commented Nov 21, 2019 at 1:58