Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #98841
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2015-11-14 18:13 -0800 |
| References | <ed2472ca-7efb-4676-b49e-356260dd533c@googlegroups.com> <mailman.340.1447552722.16136.python-list@python.org> |
| Message-ID | <3aa2f352-ea19-4252-9a09-c884887cf810@googlegroups.com> (permalink) |
| Subject | Re: What meaning is of '#!python'? |
| From | fl <rxjwg98@gmail.com> |
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 <gmail.com> 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 retyping some approximation of > what you saw. > > As it happens, I can tell what you're asking about - it's called a > shebang - but I very much doubt that it was exactly what you wrote. > > ChrisA Excuse me. Below is copied from the .py file: #!python from numpy import * from numpy.random import * def resample(weights): n = len(weights) indices = [] Thanks,
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
What meaning is of '#!python'? fl <rxjwg98@gmail.com> - 2015-11-14 17:54 -0800
Re: What meaning is of '#!python'? Chris Angelico <rosuav@gmail.com> - 2015-11-15 12:58 +1100
Re: What meaning is of '#!python'? fl <rxjwg98@gmail.com> - 2015-11-14 18:13 -0800
Re: What meaning is of '#!python'? Chris Angelico <rosuav@gmail.com> - 2015-11-15 13:18 +1100
Re: What meaning is of '#!python'? Rob Hills <rhills@medimorphosis.com.au> - 2015-11-15 11:10 +0800
Re: What meaning is of '#!python'? Zachary Ware <zachary.ware+pylist@gmail.com> - 2015-11-14 20:26 -0600
Re: What meaning is of '#!python'? Michael Torrie <torriem@gmail.com> - 2015-11-14 19:28 -0700
Re: What meaning is of '#!python'? eryksun <eryksun@gmail.com> - 2015-11-14 23:57 -0600
Re: What meaning is of '#!python'? <paul.hermeneutic@gmail.com> - 2015-11-15 21:54 -0700
csiph-web