Shebang or Hashbang for modules or not?

Michael Hoffman cam.ac.uk at mh391.invalid
Sat Apr 21 14:18:12 EDT 2007


Chris Lasher wrote:
> Should a Python module not intended to be executed have shebang/
> hashbang (e.g., "#!/usr/bin/env python") or not? I'm used to having a
> shebang in every .py file but I recently heard someone argue that
> shebangs were only appropriate for Python code intended to be
> executable (i.e., run from the command line).

Personally I include it in all of them, as part of boilerplate in a 
template.
-- 
Michael Hoffman



More information about the Python-list mailing list