From: Rich S. <rse...@ya...> - 2001-05-23 16:13:00
|
Hi, I've been seeing a problem with Jython 2.1 alpha 1, where sometimes SyntaxError exceptions are being lost. All we see at application startup is an ImportError for a top level module. This is making it extremely difficult to do development. I don't have a test case for this, but I can probably come up with one if you need it. However, by running jdb I found the spot where these are being lost. In PyModule.java, there is a method called "impHook", which has the following lines. private static PyObject impHook(String name) { if (silly_list == null) { silly_list = new PyTuple(new PyString[] { Py.newString("__doc__"),}); } try { return __builtin__.__import__(name, null, null, silly_list); } catch(PyException e) { return null; } } The SyntaxError gets caught here, and is never seen again. :-) Is there a fix/workaround for this? Thanks, Rich -- rse...@ya... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |