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


Groups > comp.lang.python > #62997

Re: About some problem

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: About some problem
Date 2014-01-02 19:27 +0000
References <CAN5p5FV7=RKK0cmE_=n+te07CEt678OX1Wwj+96T9eAuDujpfA@mail.gmail.com> <CAPM-O+wAZFmde2bVhqqs4==a-jy3AXfv3f9JNQwcNmTJHCak+Q@mail.gmail.com> <CAJ+Teoc0f3S2FRPwrtHuao+7aKiA=57Nn1UVpoH0-3WRTNQbgg@mail.gmail.com> <la483g$19i$1@ger.gmane.org> <CAJ+TeocR3HOrs-Unq7LDaPnbrVRFLVyGn7TPPy=gMmh0diB3OQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4806.1388690867.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 02/01/2014 17:46, Rustom Mody wrote:
>
> Oh ok I get what you are saying: python3 will not recognize a python2
> package and install it seemingly correctly but actually wrongly
>

No, it will install it quite correctly.  What it won't know is that some 
of the code is valid in Python 2 but invalid in Python 3.  An example I 
discovered 30 minutes ago.

raise "Not Valid DB Type"

is perfectly valid in Python 2.  In Python 3 it's so illegal the 2to3 
conversion tool can't cope with it :(

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: About some problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-02 19:27 +0000
  Re: About some problem Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-03 10:49 +1100
    Re: About some problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-03 01:14 +0000
    Re: About some problem Ethan Furman <ethan@stoneleaf.us> - 2014-01-02 20:18 -0800
    Re: About some problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-03 04:46 +0000
    Re: About some problem André Malo <ndparker@gmail.com> - 2014-01-03 21:28 +0100
      Re: About some problem Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-04 07:55 +1100
        Re: About some problem Ethan Furman <ethan@stoneleaf.us> - 2014-01-03 13:17 -0800

csiph-web