[C++-sig] Patches for pyste regarding exception specifications

Nicodemus nicodemus at globalite.com.br
Thu Jul 10 16:50:50 CEST 2003


Gottfried.Ganssauge at HAUFE.DE wrote:

> Hi everyone,
>
> I made a set of patches for pyste which allows pyste to keep exception 
> specifications in automatically generated wrappers for classes with 
> virtual functions.
>
> This obviously needs support from gccxml so this only works with the 
> CVS version of gccxml.
> Older versions of gccxml don't generate the necessary information for 
> this to work but in this case the code just isn't used.
>
> Furthermore this introduces a new Wrapper-Function: Exception(), which 
> generates a call to my exception handling facility posted yesterday.
>
> Finally two minor coding errors in the wrapping of free functions are 
> fixed which affected my project.
>
> Please see the attachment.
> The patches are relative to the pyste subdirectory within 
> boost/libs/python and cover only the src subdirectory.
>
> Cheers,
>
> Gottfried
>

Thanks a lot Gottfried, your patch looks very clean! I will commit it as 
soon as Prabhu and I have fixed the "Order Bug".

Just one thing I didn't understand, could you explain this change?

-    def SetCurrent(self, current):
+    def SetCurrent(self, current, missing = None):
+        if missing is not None:
+            pass
+        

Thanks again!
Nicodemus.





More information about the Cplusplus-sig mailing list