Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #111970
| From | Lutz Horn <lutz.horn@posteo.de> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Can Python learn from Perl? Perl 5 can now run Perl 6 code |
| Date | 2016-07-28 09:33 +0200 |
| Message-ID | <mailman.27.1469691428.10276.python-list@python.org> (permalink) |
| References | <5799b283$0$11118$c3e8da3@news.astraweb.com> <bbc9ea19-9b09-6223-abcc-a3b2279f2fd5@posteo.de> |
Hi, Am 07/28/2016 um 09:21 AM schrieb Steven D'Aprano: > But Perl has a feature that > if you tell it to run a file with a hashbang line, it will call the given > executable to run that file. That's now been improved to recognise Perl6 as an > external executable, instead of trying to run it as Perl 5 code. > Should Python do something similar? At least for Python 2/3 code? Do you mean something like #!/usr/bin/env python2.7 # here comes Python 3 code should be run using python3, if installed? Why not just put the python3 executable into the hashbang line? Lutz -- https://www.lhorn.de/ https://emailselfdefense.fsf.org/de/
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Can Python learn from Perl? Perl 5 can now run Perl 6 code Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-07-28 17:21 +1000
Re: Can Python learn from Perl? Perl 5 can now run Perl 6 code Lutz Horn <lutz.horn@posteo.de> - 2016-07-28 09:33 +0200
Re: Can Python learn from Perl? Perl 5 can now run Perl 6 code Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-07-28 10:59 +0300
Re: Can Python learn from Perl? Perl 5 can now run Perl 6 code Chris Angelico <rosuav@gmail.com> - 2016-07-28 17:48 +1000
Re: Can Python learn from Perl? Perl 5 can now run Perl 6 code Random832 <random832@fastmail.com> - 2016-07-28 09:53 -0400
Re: Can Python learn from Perl? Perl 5 can now run Perl 6 code Chris Angelico <rosuav@gmail.com> - 2016-07-29 00:40 +1000
csiph-web