Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #85590
| From | Marko Rauhamaa <marko@pacujo.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Python discussed in Nature |
| Date | 2015-02-12 18:56 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <87oaozcbld.fsf@elektro.pacujo.net> (permalink) |
| References | (2 earlier) <mbi1id$4eb$1@speranza.aioe.org> <87zj8jcqxr.fsf@elektro.pacujo.net> <mbi333$836$1@speranza.aioe.org> <87twyrchxi.fsf@elektro.pacujo.net> <mailman.18691.1423756796.18130.python-list@python.org> |
Chris Angelico <rosuav@gmail.com>:
> On Fri, Feb 13, 2015 at 1:39 AM, Marko Rauhamaa <marko@pacujo.net> wrote:
>> I write both Py2 and Py3 code, but I keep the two worlds hermetically
>> separated from each other.
>
> [...]
>
> You don't need to be afraid of the gap.
No problem. When I write Py3, I write Py3. When I write Py2, I write
Py2. When I write bash, I write bash. When I write C, I write C.
Who's afraid of the Big Bad Wolf:
========================================================================
$ python3
Python 3.4.1 (default, Nov 3 2014, 14:38:10)
[GCC 4.9.1 20140930 (Red Hat 4.9.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path = [ '/usr/lib64/python2.7' ] + sys.path
>>> import re
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/re.py", line 240
raise TypeError, "first argument must be string or compiled pattern"
^
SyntaxError: invalid syntax
>>> import xmllib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/xmllib.py", line 813
print 'xml: encoding =',encoding,'standalone =',standalone
^
SyntaxError: invalid syntax
========================================================================
Marko
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python discussed in Nature Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-02-12 19:46 +1100
Re: Python discussed in Nature Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-12 09:19 +0000
Re: Python discussed in Nature wxjmfauth@gmail.com - 2015-02-12 01:31 -0800
Re: Python discussed in Nature Fabien <fabien.maussion@gmail.com> - 2015-02-12 12:07 +0100
Re: Python discussed in Nature Marko Rauhamaa <marko@pacujo.net> - 2015-02-12 13:25 +0200
Re: Python discussed in Nature Fabien <fabien.maussion@gmail.com> - 2015-02-12 12:33 +0100
Re: Python discussed in Nature Marko Rauhamaa <marko@pacujo.net> - 2015-02-12 16:39 +0200
Re: Python discussed in Nature Chris Angelico <rosuav@gmail.com> - 2015-02-13 02:59 +1100
Re: Python discussed in Nature Marko Rauhamaa <marko@pacujo.net> - 2015-02-12 18:56 +0200
Re: Python discussed in Nature Chris Angelico <rosuav@gmail.com> - 2015-02-13 04:08 +1100
Re: Python discussed in Nature Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-02-13 14:07 +1100
Re: Python discussed in Nature Sturla Molden <sturla.molden@gmail.com> - 2015-02-13 23:58 +0100
Re: Python discussed in Nature wxjmfauth@gmail.com - 2015-02-14 00:39 -0800
Re: Python discussed in Nature John Ladasky <john_ladasky@sbcglobal.net> - 2015-02-12 10:29 -0800
Re: Python discussed in Nature Chris Angelico <rosuav@gmail.com> - 2015-02-13 05:37 +1100
Re: Python discussed in Nature wxjmfauth@gmail.com - 2015-02-13 02:03 -0800
Re: Python discussed in Nature Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-02-13 14:11 +1100
Re: Python discussed in Nature wxjmfauth@gmail.com - 2015-02-12 23:05 -0800
Re: Python discussed in Nature John Ladasky <john_ladasky@sbcglobal.net> - 2015-02-13 11:40 -0800
Re: Python discussed in Nature Chris Angelico <rosuav@gmail.com> - 2015-02-14 09:45 +1100
Re: Python discussed in Nature giacomo boffi <pecore@pascolo.net> - 2015-02-15 22:09 +0100
Re: Python discussed in Nature Chris Angelico <rosuav@gmail.com> - 2015-02-16 09:16 +1100
Re: Python discussed in Nature Rustom Mody <rustompmody@gmail.com> - 2015-02-12 20:07 -0800
Re: Python discussed in Nature Terry Reedy <tjreedy@udel.edu> - 2015-02-13 00:24 -0500
Re: Python discussed in Nature wxjmfauth@gmail.com - 2015-02-12 23:02 -0800
Re: Python discussed in Nature wxjmfauth@gmail.com - 2015-02-13 01:36 -0800
Re: Python discussed in Nature Ethan Furman <ethan@stoneleaf.us> - 2015-02-12 10:48 -0800
csiph-web