Re: [Python-Dev] assertRaises

2008-07-17 Thread Jonathan Lange
On Fri, Jul 18, 2008 at 8:51 AM, Mark Hammond <[EMAIL PROTECTED]> wrote: >> >> Let's just make assertRaises return the exception instance, it seems >> >> like it feels the need correctly. >> > >> > and I meant "fills", not "feels", obviously... >> >> +1 : enriching the existing method in a way that

Re: [Python-Dev] assertRaises

2008-07-17 Thread Mark Hammond
> >> Let's just make assertRaises return the exception instance, it seems > >> like it feels the need correctly. > > > > and I meant "fills", not "feels", obviously... > > +1 : enriching the existing method in a way that's perfectly > transparent and innocuous to all existing uses _feels_ right, b

Re: [Python-Dev] assertRaises

2008-07-17 Thread Alex Martelli
On Thu, Jul 17, 2008 at 2:54 AM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > > I said: >> Let's just make assertRaises return the exception instance, it seems like it >> feels the need correctly. > > and I meant "fills", not "feels", obviously... +1 : enriching the existing method in a way that's

Re: [Python-Dev] assertRaises

2008-07-17 Thread Antoine Pitrou
I said: > Let's just make assertRaises return the exception instance, it seems like it > feels the need correctly. and I meant "fills", not "feels", obviously... ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinf

[Python-Dev] assertRaises

2008-07-17 Thread Antoine Pitrou
Fred Drake acm.org> writes: > > Sounds like adding a new method, catchException(...), that returns the > exception it catches, would be a reasonable compromise. I can't think > of any reason that the method that catches-and-returns needs to be the > existing API, which does something diffe