Re: [Cython] Redundant Cython exception message strings

2011-05-28 Thread Stefan Behnel
Robert Bradshaw, 28.05.2011 18:14: On Sat, May 28, 2011 at 1:15 AM, Vitja Makarov wrote: So maybe I should add functions like __Pyx_RaiseUnboundLocalError and __Pyx_RaiseClosureNameError that will use 3) way. How do you like put_error_if_unbound CCodeWriter method is that right place for it?

Re: [Cython] Redundant Cython exception message strings

2011-05-28 Thread Robert Bradshaw
On Sat, May 28, 2011 at 2:37 AM, Stefan Behnel wrote: > Robert Bradshaw, 28.05.2011 00:39: >> >> On Fri, May 27, 2011 at 3:32 PM, Stefan Behnel wrote: >>> >>> I recently stumbled over a tradeoff question with AttributeError, and now >>> found the same situation for UnboundLocalError in Vitja's con

Re: [Cython] Redundant Cython exception message strings

2011-05-28 Thread Robert Bradshaw
On Sat, May 28, 2011 at 1:15 AM, Vitja Makarov wrote: > 2011/5/28 Robert Bradshaw : >> On Fri, May 27, 2011 at 3:32 PM, Stefan Behnel wrote: >>> Hi, >>> >>> I recently stumbled over a tradeoff question with AttributeError, and now >>> found the same situation for UnboundLocalError in Vitja's cont

Re: [Cython] Redundant Cython exception message strings

2011-05-28 Thread Stefan Behnel
Robert Bradshaw, 28.05.2011 00:39: On Fri, May 27, 2011 at 3:32 PM, Stefan Behnel wrote: I recently stumbled over a tradeoff question with AttributeError, and now found the same situation for UnboundLocalError in Vitja's control flow branch. So here it is. When we raise an exception several tim

Re: [Cython] Redundant Cython exception message strings

2011-05-28 Thread Vitja Makarov
2011/5/28 Robert Bradshaw : > On Fri, May 27, 2011 at 3:32 PM, Stefan Behnel wrote: >> Hi, >> >> I recently stumbled over a tradeoff question with AttributeError, and now >> found the same situation for UnboundLocalError in Vitja's control flow >> branch. So here it is. >> >> When we raise an exce

Re: [Cython] Redundant Cython exception message strings

2011-05-27 Thread Robert Bradshaw
On Fri, May 27, 2011 at 3:32 PM, Stefan Behnel wrote: > Hi, > > I recently stumbled over a tradeoff question with AttributeError, and now > found the same situation for UnboundLocalError in Vitja's control flow > branch. So here it is. > > When we raise an exception several times in different part