Re: What meaning is of '#!python'?

2015-11-15 Thread paul.hermeneutic
The installer of some applications will replace the shebang to refer to a specific version of Python. By doing so, it avoids problems when someone upgrades the default Python version in the PATH. On Nov 14, 2015 11:00 PM, "eryksun" wrote: > On Sat, Nov 14, 2015 at 8:26 PM,

Re: What meaning is of '#!python'?

2015-11-14 Thread Michael Torrie
On 11/14/2015 06:54 PM, fl wrote: > Hi, > > I see an example Python code has such a line at the file beginning: > > #!python > > > Is there some meaning about it? Supposed to be, yes, but the line you've pasted there wouldn't work on any system I know of.

Re: What meaning is of '#!python'?

2015-11-14 Thread Zachary Ware
On Sat, Nov 14, 2015 at 7:58 PM, Chris Angelico wrote: > On Sun, Nov 15, 2015 at 12:54 PM, fl wrote: >> I see an example Python code has such a line at the file beginning: >> >> #!python >> >> >> Is there some meaning about it? > > It probably didn't look

Re: What meaning is of '#!python'?

2015-11-14 Thread fl
On Saturday, November 14, 2015 at 8:58:57 PM UTC-5, Chris Angelico wrote: > On Sun, Nov 15, 2015 at 12:54 PM, fl wrote: > > I see an example Python code has such a line at the file beginning: > > > > #!python > > > > > > Is there some meaning about it? > > It probably didn't look exactly like

Re: What meaning is of '#!python'?

2015-11-14 Thread Chris Angelico
On Sun, Nov 15, 2015 at 12:54 PM, fl wrote: > I see an example Python code has such a line at the file beginning: > > #!python > > > Is there some meaning about it? It probably didn't look exactly like that. Please, when you're asking questions, COPY AND PASTE rather than

Re: What meaning is of '#!python'?

2015-11-14 Thread Chris Angelico
On Sun, Nov 15, 2015 at 1:13 PM, fl wrote: > Excuse me. Below is copied from the .py file: > > #!python > from numpy import * > from numpy.random import * > Then someone doesn't know how to use a shebang (or is deliberately abusing it), and you can ignore it. It starts with a

Re: What meaning is of '#!python'?

2015-11-14 Thread Rob Hills
On 15/11/15 10:18, Chris Angelico wrote: > On Sun, Nov 15, 2015 at 1:13 PM, fl wrote: >> Excuse me. Below is copied from the .py file: >> >> #!python >> from numpy import * >> from numpy.random import * >> > Then someone doesn't know how to use a shebang (or is deliberately >

Re: What meaning is of '#!python'?

2015-11-14 Thread eryksun
On Sat, Nov 14, 2015 at 8:26 PM, Zachary Ware wrote: > > "#!python" is a valid shebang for the Python Launcher for Windows. > It's also a not-too-terrible placeholder for a Unix shebang meaning > "whichever Python you want it to be". The better choice for use with

What meaning is of '#!python'?

2015-11-14 Thread fl
Hi, I see an example Python code has such a line at the file beginning: #!python Is there some meaning about it? Thanks, -- https://mail.python.org/mailman/listinfo/python-list