vector addition

Dan Stromberg drsalists at gmail.com
Mon Jun 7 17:22:24 EDT 2010


On Mon, Jun 7, 2010 at 1:16 PM, Thomas Jollans <tjol at jollybox.de> wrote:

>  On 06/07/2010 07:45 PM, Dan Stromberg wrote:
>
>
> Call me strange, but I regard this as a good place to use a functional
> style - IE, to use reduce, and furthermore I regard this as a good example
> of why reduce is useful for more than just summing numbers:
>
> #!/disc/gx/sdfw/dans/python26/bin/python
>
> this line is shouting to be replaced with
> #!/usr/bin/env python
> ;-)
>
> I used to do that a lot, but:
1) I often have more than one version of python around.
2) It makes "ps -ef" a bit less descriptive - the command shows up as
"python" rather than the name of the script, at least in some scenarios.

So believe it or not, I've been changing -from- #!/usr/bin/env python.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100607/4229c943/attachment-0001.html>


More information about the Python-list mailing list