byte-of-python AT lists.ibiblio.org
Subject: Discussion regarding the book 'A Byte of Python'
List archive
- From: cpghost AT cordula.ws
- To: byte-of-python AT lists.ibiblio.org
- Cc: cpghost AT cordula.ws
- Subject: [Byte-of-Python] Mistake in she-bang line
- Date: Mon, 14 Feb 2005 05:07:04 +0100
Hi,
nice book :)
There's one thing that should IMHO be changed though:
Please consider replacing
#!/usr/bin/python
with
#!/usr/bin/env python
to accomodate OSes that don't place the python interpreter
in /usr/bin, like the BSDs (/usr/local/bin/python or
/usr/pkg/bin/python), Solaris (/opt/bin/python) and others.
Assuming that the python interpreter always resides in /usr/bin
or that a symlink from /usr/bin to the final destination exists
is an unportable Linuxism.
Recently, there was a heated discussion on a FreeBSD mailing
list, wether to remove the /usr/bin/perl -> /usr/local/bin/perl
symlink, so that the perl-free base system (in /usr/bin)
would be completely unpolluted by third party packages
(in /usr/local/bin), but the huge amount of perl scripts
containig #!/usr/bin/perl (instead of #!/usr/local/bin/perl)
was a hindrance.
With python, things are (fortunately) not that bad (yet!).
Teaching people to use #!/usr/bin/env python instead
of #!/usr/bin/python from the very beginning would be a
great thing to do.
Regards,
-cpghost.
--
Cordula's Web. http://www.cordula.ws/
-
[Byte-of-Python] Mistake in she-bang line,
cpghost, 02/13/2005
- Re: [Byte-of-Python] Mistake in she-bang line, Swaroop C H, 02/16/2005
-
Message not available
- Re: [Byte-of-Python] Mistake in she-bang line, cpghost, 02/16/2005
Archive powered by MHonArc 2.6.24.