|
From: David G. <go...@py...> - 2002-11-13 06:22:26
|
> On Tue, Nov 12, 2002, David Goodger wrote: >> General tip: at the top of script files, don't use:: >> >> #!/usr/bin/python >> >> Please use this instead:: >> >> #! /usr/bin/env python Aahz wrote: > Enh. Too many sysadmins I know decry this practice as a security risk. Do you know of any good references? Genuinely curious. > While I use the trick myself, I'm not at all comfortable pushing it as a > solution for general scripts. I don't see how hard-coding a possibly-nonexistent, possibly-erroneous path is any better. It had me genuinely confused for a minute or two, wondering why the complaint about bad syntax on a "function(*args)"-type call. > It's not in PEP 8. PEP 8 doesn't mention hash-bangs or script execution at all; I don't get the point. -- David Goodger <go...@py...> Open-source projects: - Python Docutils: http://docutils.sourceforge.net/ (includes reStructuredText: http://docutils.sf.net/rst.html) - The Go Tools Project: http://gotools.sourceforge.net/ |