Re: Using exceptions in defined in an extension module inside another extension module

2008-12-24 Thread Floris Bruynooghe
Christian Heimes wrote: > Floris Bruynooghe schrieb: > > What I can't work out however is how to then be able to raise this > > exception in another extension module. Just defining it as "extern" > > doesn't work, even if I make sure the first module -that creates the > > exception- gets loaded

Re: Using exceptions in defined in an extension module inside another extension module

2008-12-24 Thread Christian Heimes
Floris Bruynooghe schrieb: > What I can't work out however is how to then be able to raise this > exception in another extension module. Just defining it as "extern" > doesn't work, even if I make sure the first module -that creates the > exception- gets loaded first. Because the symbol is define

Using exceptions in defined in an extension module inside another extension module

2008-12-24 Thread Floris Bruynooghe
Hello If I have an extension module and want to use an exception I can do by declaring the exception as "extern PyObject *PyExc_FooError" in the object files if I then link those together inside a module where the module has them declared the same (but no extern) and then initialises them in the P