[Biopython-dev] [Bug 2269] Shebang (hashbang) lines need cleanup

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Mon Jun 4 16:04:56 UTC 2007


------- Comment #5 from chris.lasher at gmail.com  2007-06-04 12:04 EST -------
FWIW, the shebang appears to convey the Python file is meant to be executed in
a standalone fashion*, rather than be used as a module. Since Biopython
consists largely of modules, I can agree with Michiel that, with exception of
the test scripts, the shebangs ought to be removed. I need to check more of the
files, but it seems modules which are written with an "if __name__ ==
'__main__'" check simply execute some test code, or even nothing, if true. This
indicates they truly are meant to be modules rather than standalone scripts,
making a case for removing their shebangs.

That said, there's no real harm in having the shebangs in the files. I think
consistency is more key. If we do allow shebangs, we ought to set a standard.

* See
alternative TinyURL: <http://tinyurl.com/2kmso2>

Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the Biopython-dev mailing list