|
From: <bc...@wo...> - 2001-03-02 20:48:24
|
[Eli Ateljevich] >Hi. At Finn's advice, I recently compiled the CVS version of Jython in >order to use the new rich comparisons. They work great! However, I can no >longer "import re". I get >ImportError: no module named re > >This module was recently a topic of some changes. Can someone explain how >to accommodate the recent changes? .... or verify that these changes are >supposed to be invisible from the point of view of the user, so that I can >look for some other path issue? The CVS version does *not* contain any of the module that are a straight copy of the CPython modules. Instead you will have to get a recent CVS copy of CPython and use the modules there. Personally I have a setup where my <home>/.jython contains: python.path = i:\\python\\python\\dist\\src\\Lib which is the directory where I have my CVS copy of CPython. This setup works most of the time. The "re" (actually the "sre") module is quite sensitive to the correct synchronization between the the "_sre" module, which is part of jython and the "re.py" module, which is part of CPython. At the moment the two versions are synchronized so you should be able to use this combination of Jython CVS and CPython CVS. http://sourceforge.net/cvs/?group_id=5470 regards, finn |