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


Groups > comp.lang.python > #63087

Re: About some problem

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ethan@stoneleaf.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'string': 0.09; 'compile- time': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'lawrence': 0.09; 'message- id:@stoneleaf.us': 0.09; 'oh,': 0.09; 'runtime': 0.09; '~ethan~': 0.09; 'python': 0.11; '2.7': 0.14; 'received:69.93': 0.16; 'wrote:': 0.18; 'work,': 0.20; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'subject:problem': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'raise': 0.29; "doesn't": 0.30; 'work.': 0.31; '>>>>': 0.31; "d'aprano": 0.31; 'exceptions': 0.31; 'steven': 0.31; 'subject:About': 0.31; 'subject:some': 0.31; 'display': 0.35; 'but': 0.35; '2.6': 0.36; 'being': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; '"not': 0.84; 'actually,': 0.84
Date Fri, 03 Jan 2014 13:17:53 -0800
From Ethan Furman <ethan@stoneleaf.us>
User-Agent Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
MIME-Version 1.0
To python-list@python.org
Subject Re: About some problem
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> <mailman.4806.1388690867.18130.python-list@python.org> <52c5fb00$0$29981$c3e8da3$5496439d@news.astraweb.com> <5838476.4I4dOAImpA@news.perlig.de> <52c723bc$0$29982$c3e8da3$5496439d@news.astraweb.com>
In-Reply-To <52c723bc$0$29982$c3e8da3$5496439d@news.astraweb.com>
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - gator3304.hostgator.com
X-AntiAbuse Original Domain - python.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - stoneleaf.us
X-BWhitelist no
X-Source-IP 70.199.142.168
X-Source
X-Source-Args
X-Source-Dir
X-Source-Sender ([192.168.43.29]) [70.199.142.168]:10662
X-Source-Auth ethan+stoneleaf.us
X-Email-Count 1
X-Source-Cap dG9idWs7dG9idWs7Z2F0b3IzMzA0Lmhvc3RnYXRvci5jb20=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4869.1388785310.18130.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388785310 news.xs4all.nl 2892 [2001:888:2000:d::a6]:56018
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63087

Show key headers only | View raw


On 01/03/2014 12:55 PM, Steven D'Aprano wrote:
> André Malo wrote:
>
>> * Steven D'Aprano wrote:
>>
>>> Mark Lawrence wrote:
>>>
>>>> raise "Not Valid DB Type"
>>>>
>>>> is perfectly valid in Python 2.
>>>
>>> Actually, no it isn't. It's only valid up to Python 2.4. In Python 2.5,
>>> string exceptions display a warning but continue to work, and in Python
>>> 2.6 they generate a compile-time SyntaxError.
>>
>> Oh? Doesn't look like it.
>
> Oh, it's a runtime TypeError, not SyntaxError.

The main point being that in 2.6 and 2.7 string exceptions do /not/ work.

--
~Ethan~

Back to comp.lang.python | Previous | NextPrevious 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