Shebang or Hashbang for modules or not?

Chris Lasher chris.lasher at gmail.com
Wed Apr 11 12:29:11 EDT 2007


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).




More information about the Python-list mailing list