From: Charlie G. <cha...@gm...> - 2007-07-10 15:47:06
|
Hi Keshav, I hadn't seen that bug, but I just fixed http://jython.org/bugs/1747092 a couple days ago in http://fisheye3.cenqua.com/changelog/jython/?cs=3287. It appears to be a duplicate of the one you're looking at, so the issue is already fixed. I think the commit message and comment added in imp.java in r3287 answers your questions. I'm sorry you ended up working on something that was already fixed. Charlie On 7/10/07, Keshav Upadhyaya <uk...@no...> wrote: > Hi i am working on this bug :- [ 837308 ] Importing bug > i am having some issues associated with this :- > > 1). When ever some particular module is not find they will store it in module list with its <name as key , Py.None as value> so when ever again we import this module in future it will check form sys.module list and return the result which is Py.None > > if i am not wrong it is done for efficiency purpose so that each time it need not to search form the base path directly it will check in module list and give the result directly . > > i have debug the flow and observed if some particular module is not found we need not to store it in Module list or sys.module so that if that module is created then next time it should search it from the base paths . > > 2). For solving this bug i am thinking for two approaches : > > a. Do not store< Module name and value Py.None >if that particular module is not found in module list simply let it search form the base path > > b. or if we are storing these values in to module list then if it matches value Py.none then again search for the module form the base (but it is not at all useful any how we will do it even though if we will not wright it in to module list ) > > > please help me out in this case. > > keshav upadhyaya > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-dev > |