Re: [Cython] Redundant Cython exception message strings

2011-05-28 Thread Robert Bradshaw
On Sat, May 28, 2011 at 1:15 AM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/5/28 Robert Bradshaw rober...@math.washington.edu: On Fri, May 27, 2011 at 3:32 PM, Stefan Behnel stefan...@behnel.de wrote: Hi, I recently stumbled over a tradeoff question with AttributeError, and now found

Re: [Cython] Redundant Cython exception message strings

2011-05-28 Thread Robert Bradshaw
On Sat, May 28, 2011 at 2:37 AM, Stefan Behnel stefan...@behnel.de 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

[Cython] Redundant Cython exception message strings

2011-05-27 Thread Stefan Behnel
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 parts of the code with a message that only differs slightly each