Re: [PyQt] sip: extend exception support

2012-09-19 Thread Mathias . Born
On 19.09.2012, 11:07:14 Phil Thompson wrote: > On Mon, 17 Sep 2012 22:25:59 +0200, mathias.b...@gmx.de wrote: >> On 17.09.2012, 22:14:49 Phil Thompson wrote: >>> On Mon, 27 Aug 2012 12:10:23 -0700, Matt Newell > wrote: > > The difference is the access to the (not necessarily present) > ob

Re: [PyQt] sip: extend exception support

2012-09-17 Thread Mathias . Born
On 17.09.2012, 22:14:49 Phil Thompson wrote: > On Mon, 27 Aug 2012 12:10:23 -0700, Matt Newell wrote: >>> >>> The difference is the access to the (not necessarily present) objects. >>> How >>> are you getting these? >>> >>> Phil >> >> Here's the patch against a quite old hg checkout. > After s

Re: [PyQt] sip: extend exception support

2012-09-03 Thread Phil Thompson
On Mon, 27 Aug 2012 12:10:23 -0700, Matt Newell wrote: >> >> The difference is the access to the (not necessarily present) objects. >> How >> are you getting these? >> >> Phil > > Here's the patch against a quite old hg checkout. After several more iterations (ok, rewrites) the implementation

Re: [PyQt] sip: extend exception support

2012-08-27 Thread Mathias . Born
On 27.08.2012, 14:34:10 Phil Thompson wrote: > On Sun, 26 Aug 2012 22:22:40 +0200, mathias.b...@gmx.de wrote: >> On 26.08.2012, 16:07:52 Phil Thompson wrote: >>> On Sun, 26 Aug 2012 14:30:32 +0200, mathias.b...@gmx.de wrote: On 26.08.2012, 16:46:24 Phil Thompson wrote: > On Wed, 15 Aug 201

Re: [PyQt] sip: extend exception support

2012-08-27 Thread Phil Thompson
On Mon, 27 Aug 2012 10:18:08 -0700, Matt Newell wrote: >> >> In current hg... >> >> %VirtualErrorCode is a new sub-directive of the %Module directive. >> >> all_throw_cpp_exception replaced by all_use_VirtualErrorCode. >> >> /ThrowsCppException/ replaced by /UsesVirtualErrorCode/. >> >> /NoTh

Re: [PyQt] sip: extend exception support

2012-08-27 Thread Matt Newell
> > In current hg... > > %VirtualErrorCode is a new sub-directive of the %Module directive. > > all_throw_cpp_exception replaced by all_use_VirtualErrorCode. > > /ThrowsCppException/ replaced by /UsesVirtualErrorCode/. > > /NoThrowsCppException/ replaced by /NoUsesVirtualErrorCode/. > > Remo

Re: [PyQt] sip: extend exception support

2012-08-27 Thread Phil Thompson
On Sun, 26 Aug 2012 22:22:40 +0200, mathias.b...@gmx.de wrote: > On 26.08.2012, 16:07:52 Phil Thompson wrote: >> On Sun, 26 Aug 2012 14:30:32 +0200, mathias.b...@gmx.de wrote: >>> On 26.08.2012, 16:46:24 Phil Thompson wrote: On Wed, 15 Aug 2012 15:54:11 +0200, mathias.b...@gmx.de wrote: >

Re: [PyQt] sip: extend exception support

2012-08-26 Thread Mathias . Born
On 26.08.2012, 16:07:52 Phil Thompson wrote: > On Sun, 26 Aug 2012 14:30:32 +0200, mathias.b...@gmx.de wrote: >> On 26.08.2012, 16:46:24 Phil Thompson wrote: >>> On Wed, 15 Aug 2012 15:54:11 +0200, mathias.b...@gmx.de wrote: ... > Should all be fixed in current hg and tonight's snapshot. > T

Re: [PyQt] sip: extend exception support

2012-08-26 Thread Phil Thompson
On Sun, 26 Aug 2012 14:30:32 +0200, mathias.b...@gmx.de wrote: > On 26.08.2012, 16:46:24 Phil Thompson wrote: >> On Wed, 15 Aug 2012 15:54:11 +0200, mathias.b...@gmx.de wrote: >>> Phil, >>> >>> sip can already propagate C++ exceptions into Python in cases >>> where Python calls a C++ function whic

Re: [PyQt] sip: extend exception support

2012-08-26 Thread Mathias . Born
On 26.08.2012, 16:46:24 Phil Thompson wrote: > On Wed, 15 Aug 2012 15:54:11 +0200, mathias.b...@gmx.de wrote: >> Phil, >> >> sip can already propagate C++ exceptions into Python in cases >> where Python calls a C++ function which throws an exception. >> >> However, if I extend a C++ class in Pyth

Re: [PyQt] sip: extend exception support

2012-08-25 Thread Phil Thompson
On Wed, 15 Aug 2012 15:54:11 +0200, mathias.b...@gmx.de wrote: > Phil, > > sip can already propagate C++ exceptions into Python in cases > where Python calls a C++ function which throws an exception. > > However, if I extend a C++ class in Python and call a corresponding > (Python-)method in C++

[PyQt] sip: extend exception support

2012-08-15 Thread Mathias . Born
Phil, sip can already propagate C++ exceptions into Python in cases where Python calls a C++ function which throws an exception. However, if I extend a C++ class in Python and call a corresponding (Python-)method in C++ via the wrapper, the sip generated wrapper code checks for a Python exception