Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51294 > unrolled thread

Re: Python Script Hashplings

Started byDevyn Collier Johnson <devyncjohnson@gmail.com>
First post2013-07-26 06:41 -0400
Last post2013-07-26 06:41 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python Script Hashplings Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-07-26 06:41 -0400

#51294 — Re: Python Script Hashplings

FromDevyn Collier Johnson <devyncjohnson@gmail.com>
Date2013-07-26 06:41 -0400
SubjectRe: Python Script Hashplings
Message-ID<mailman.5141.1374835294.3114.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

On 07/25/2013 10:01 AM, Matthew Lefavor wrote:
> The answer is "probably not." If you just want to use the latest 
> version of Python 3 you have installed on your system, use: 
> "#!/usr/bin/python3". When you use the specific minor version numbers, 
> they point to that specific minor version.
>
> Actually, the preferred shebang line is of the form: "#!/usr/bin/env 
> python3". This way the end users can override the interpreter with, 
> say, a virtualenv, rather than being stuck with the system default.
>
>
> On Thu, Jul 25, 2013 at 9:54 AM, MRAB <python@mrabarnett.plus.com 
> <mailto:python@mrabarnett.plus.com>> wrote:
>
>     On 25/07/2013 14:42, Devyn Collier Johnson wrote:
>
>         If I execute a Python3 script with this haspling
>         (#!/usr/bin/python3.3)
>         and Python3.3 is not installed, but Python3.2 is installed,
>         would the
>         script still work? Would it fall back to Python3.2?
>
>     Why don't you try it?
>
>
>         I hope Dihedral is listening. I would like to see another
>         response from HIM.
>
>
>     -- 
>     http://mail.python.org/mailman/listinfo/python-list
>
>
>
>

Thanks Matthew Lefavor! But specifically, why use "#!/usr/bin/env 
python3" instead of "#!/usr/bin/python3"?

Mahalo,

DCJ

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web