Variations on a theme by "pound bang"

Christian Tismer tismer at appliedbiometrics.com
Sun Jun 13 14:25:02 EDT 1999


Sean Mc Grath wrote:
> 
> Can anyone shed some light on the benefits of:-
> 
> # !/usr/bin/env python

Uses the env program which is allways there, to figure out
from the environment settings which python to use.
This can be useful when you are running multiple Python
versions. Use this in a secure setup, on a local
machine, and NEVER AS ROOT.

This feature is dangerous in an CGI environment.
CGI applications should depend on environment
settings to the bare minimum. Whatever can be avoided,
should be avoided.

> as opposed to
> 
> # !/usr/bin/python

The way to go for CGI. Simple, explicit, not dependant
from someone messing up with server settings.

ciao - chris

-- 
Christian Tismer             :^)   <mailto:tismer at appliedbiometrics.com>
Applied Biometrics GmbH      :     Have a break! Take a ride on Python's
Kaiserin-Augusta-Allee 101   :    *Starship* http://starship.python.net
10553 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     we're tired of banana software - shipped green, ripens at home




More information about the Python-list mailing list