Re: Nested try...except

2008-04-03 Thread Duncan Booth
Carl Banks <[EMAIL PROTECTED]> wrote: > Perhaps the advent of with blocks will help reduce this error in the > future. Indeed, and to encourage its use I think this thread ought to include the 'with statement' form of the function: from __future__ import with_statement from contextlib import cl

Re: Nested try...except

2008-04-02 Thread Carl Banks
On Apr 2, 9:06 am, [EMAIL PROTECTED] wrote: > Hi, > > I found the following code on the net - > > http://mail-archives.apache.org/mod_mbox/httpd-python-cvs/200509.mbox/[EMAIL > PROTECTED] > > def count(self): > -db = sqlite.connect(self.filename, > isolation_level=ISOLATION_LEVEL) > -

Re: Nested try...except

2008-04-02 Thread [EMAIL PROTECTED]
On 2 avr, 15:22, [EMAIL PROTECTED] wrote: > On 2 Apr, 15:15, [EMAIL PROTECTED] wrote: > > > > > On 2 Apr, 15:12, [EMAIL PROTECTED] wrote: > > > > On Apr 2, 3:06 pm, [EMAIL PROTECTED] wrote: > > > > > Hi, > > > > > I found the following code on the net - > > > > > http://mail-archives.apache.org/mod

Re: Nested try...except

2008-04-02 Thread [EMAIL PROTECTED]
On 2 avr, 15:12, [EMAIL PROTECTED] wrote: > On Apr 2, 3:06 pm, [EMAIL PROTECTED] wrote: > > > > > Hi, > > > I found the following code on the net - > > > http://mail-archives.apache.org/mod_mbox/httpd-python-cvs/200509.mbox/[EMAIL > > PROTECTED] > > > def count(self): > > -db = sqlite.

Re: Nested try...except

2008-04-02 Thread [EMAIL PROTECTED]
On 2 avr, 18:25, Nanjundi <[EMAIL PROTECTED]> wrote: > On Apr 2, 9:22 am, [EMAIL PROTECTED] wrote: > > > > > On 2 Apr, 15:15, [EMAIL PROTECTED] wrote: > > > > On 2 Apr, 15:12, [EMAIL PROTECTED] wrote: > > > > > On Apr 2, 3:06 pm, [EMAIL PROTECTED] wrote: > > > > > > Hi, > > > > > > I found the foll

Re: Nested try...except

2008-04-02 Thread Nanjundi
On Apr 2, 9:22 am, [EMAIL PROTECTED] wrote: > On 2 Apr, 15:15, [EMAIL PROTECTED] wrote: > > > > > On 2 Apr, 15:12, [EMAIL PROTECTED] wrote: > > > > On Apr 2, 3:06 pm, [EMAIL PROTECTED] wrote: > > > > > Hi, > > > > > I found the following code on the net - > > > > > http://mail-archives.apache.org/m

Re: Nested try...except

2008-04-02 Thread Magnus . Moraberg
On 2 Apr, 15:15, [EMAIL PROTECTED] wrote: > On 2 Apr, 15:12, [EMAIL PROTECTED] wrote: > > > > > On Apr 2, 3:06 pm, [EMAIL PROTECTED] wrote: > > > > Hi, > > > > I found the following code on the net - > > > > http://mail-archives.apache.org/mod_mbox/httpd-python-cvs/200509.mbox/[EMAIL > > > PROTECT

Re: Nested try...except

2008-04-02 Thread Magnus . Moraberg
On 2 Apr, 15:12, [EMAIL PROTECTED] wrote: > On Apr 2, 3:06 pm, [EMAIL PROTECTED] wrote: > > > > > Hi, > > > I found the following code on the net - > > > http://mail-archives.apache.org/mod_mbox/httpd-python-cvs/200509.mbox/[EMAIL > > PROTECTED] > > > def count(self): > > -db = sqlite.

Re: Nested try...except

2008-04-02 Thread Duncan Booth
[EMAIL PROTECTED] wrote: > Hi, > > I found the following code on the net - > > http://mail-archives.apache.org/mod_mbox/httpd-python-cvs/200509.mbox/% > [EMAIL PROTECTED] > > def count(self): > -db = sqlite.connect(self.filename, > isolation_level=ISOLATION_LEVEL) > -tr

Re: Nested try...except

2008-04-02 Thread cokofreedom
On Apr 2, 3:06 pm, [EMAIL PROTECTED] wrote: > Hi, > > I found the following code on the net - > > http://mail-archives.apache.org/mod_mbox/httpd-python-cvs/200509.mbox/[EMAIL > PROTECTED] > > def count(self): > -db = sqlite.connect(self.filename, > isolation_level=ISOLATION_LEVEL) > -