problems using exceptions and same modules
"Romà Segura" <[email protected]> Thu, 21 Jun 2007 13:10:22 +0200
| Newsgroups | gmane.comp.web.zope.perl |
|---|---|
| Message-ID | <[email protected]> |
--===============0386580016== Content-Type: multipart/alternative; boundary="----=_Part_93037_2239207.1182424222038" ------=_Part_93037_2239207.1182424222038 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi there! I've been using pyperl for a long time and now I've found some kind of weird error when working with a combination of exception hadling - swig wrappers - C++, python and perl. Briefly: I've some modules written in C++ which I use under python and perl via swig wrappers. These modules handle some exceptions to return errors to the user. Well, if I import one of these modules under python and after that I use pyperl to call any perl module which also uses that module (but the perl version), the exceptions are not passed correctly, because they are raised but they don't use the object containing the exception information. This happens even if I only import the module but I don't use it. If I don't use it under python, the exception is handled correctly. Any ideas about what's happening?? Thanks!! ------=_Part_93037_2239207.1182424222038 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <br> Hi there! <br><br> I've been using pyperl for a long time and now I've found some kind of weird error when working with a combination of exception hadling - swig wrappers - C++, python and perl.<br> <br><br> Briefly: I've some modules written in C++ which I use under python and perl via swig wrappers. These modules handle some exceptions to return errors to the user. <br><br> Well, if I import one of these modules under python and after that I use pyperl to call any perl module which also uses that module (but the perl version), the exceptions are not passed correctly, because they are raised but they don't use the object containing the exception information. <br><br>This happens even if I only import the module but I don't use it. If I don't use it under python, the exception is handled correctly.<br><br><br>Any ideas about what's happening??<br><br>Thanks!! <span style="font-size: larger;"></span> ------=_Part_93037_2239207.1182424222038-- --===============0386580016== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Zope-perl maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope-perl --===============0386580016==--