From: Samuele P. <ped...@bl...> - 2004-08-25 10:27:47
|
At 10:12 25.08.2004 +0200, Perez Carmona, David wrote: >Hi, > >I've done a series of small improvements to Jython: > >- Automatic reloading of imported modules after modification this is not Python behavior >- Possibility of separation between *$py.class and *.py what you mean by that? Btw because of PEP302 importing implementation is another area that will likely undergo signitificative changes. >- Use of commons logging this one may be interesting if done properly, if you mean for Jython own messages > >I'd like to contribute the changes that can be of general interest. > >How can it be done? submitting patches to sf.net/projects/jython. As I said in another mail, don't expect a review before there is a new alpha of Jython. Thanks. > >David >************************************************************* Este correo >ha sido procesado por el antivirus del Grupo FCC. >************************************************************* |
From: Perez C. D. <DPe...@fc...> - 2004-08-26 06:30:10
|
Hi Samuele, > -----Mensaje original----- > De: Samuele Pedroni [mailto:ped...@bl...] > Enviado el: mi=E9rcoles, 25 de agosto de 2004 12:30 > Para: Perez Carmona, David; JyDev (E-mail) > Asunto: Re: [Jython-dev] Jython improvements >=0D >=0D >=0D > At 10:12 25.08.2004 +0200, Perez Carmona, David wrote: > >Hi, > > > >I've done a series of small improvements to Jython: > > > >- Automatic reloading of imported modules after modification >=0D > this is not Python behavior OK. I needed for a Web server app that runs continuously. =0D > >- Possibility of separation between *$py.class and *.py >=0D > what you mean by that? We have a lot of *.py files in our app, and it is a little mess to have= together those *$py.class and *.py. And it complicates also the= comparison between the source control system repository and the file= system. >=0D > Btw because of PEP302 importing implementation is another=0D > area that will=0D > likely undergo signitificative changes. That's cool, and in this way many of my modifications to Jython import= mechanisms would be unnecessary. >=0D > >- Use of commons logging >=0D > this one may be interesting if done properly, if you mean for=0D > Jython own=0D > messages This is a very simple non-intrusive modification, for unifying logs from= other libs we use with the messages that Jython uses. > > > >I'd like to contribute the changes that can be of general interest. > > > >How can it be done? >=0D > submitting patches to sf.net/projects/jython. As I said in=0D > another mail,=0D > don't expect a review before there is a new alpha of Jython. Thanks. ************************************************************* Este correo ha sido procesado por el antivirus del Grupo FCC. ************************************************************* |
From: Kevin J. B. <jyt...@sa...> - 2004-08-26 15:39:59
|
jyt...@li... wrote: >From: "Perez Carmona, David" <DPe...@fc...> >I've done a series of small improvements to Jython: >=0D >- Automatic reloading of imported modules after modification > > Although this is not Python behavior, and therefore not appropriate for Jython, I would like to see what you've done. If the modifications are not too extensive, perhaps posting here would be appropriate, otherwise, posting for downloading elsewhere (possibly submitted as a patch to Jython, though it will likely be rejected - does sourceforge retain and make available rejected patches??). Thanks. kb |
From: Guy Gascoigne-P. <gg...@tr...> - 2004-08-26 17:13:39
|
=20 I'd have some interest in this as well. We too have a long running server, and we get around this particular problem by running all jython within the scope of a single classloader, and when we need to reload, killing one and starting another session with a separate classloader. It actually works pretty well and avoids branching the jython source, but I'd be very interested in seeing alternative ways of dealing with this. Guy -----Original Message----- From: jyt...@li... [mailto:jyt...@li...] On Behalf Of Kevin J. Butler Sent: Thursday, August 26, 2004 8:39 AM To: jyt...@li... Subject: Re: [Jython-dev] Jython improvements jyt...@li... wrote: >From: "Perez Carmona, David" <DPe...@fc...> >I've done a series of small improvements to Jython: >=3D0D >- Automatic reloading of imported modules after modification > =20 > Although this is not Python behavior, and therefore not appropriate for=20 Jython, I would like to see what you've done. If the modifications are not too extensive, perhaps posting here would=20 be appropriate, otherwise, posting for downloading elsewhere (possibly=20 submitted as a patch to Jython, though it will likely be rejected - does sourceforge retain and make available rejected patches??). Thanks. kb ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Jython-dev mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-dev |
From: Perez C. D. <DPe...@fc...> - 2004-08-27 10:59:42
|
My changes are very simple: I have changed org.jython.core.imp.import_next() to check if reloading is= necessary and class PyModule to retain the original source file path. The problem is that some modules, need automatic reloading, because this= system only works if the import statement is executed. I'm also very interested about yours. > -----Mensaje original----- > De: jyt...@li... > [mailto:jyt...@li...]En nombre de Guy > Gascoigne-Piggford > Enviado el: jueves, 26 de agosto de 2004 19:13 > Para: jyt...@li... > Asunto: RE: [Jython-dev] Jython improvements >=0D >=0D >=0D >=0D >=0D > I'd have some interest in this as well. We too have a long running > server, and we get around this particular problem by running=0D > all jython > within the scope of a single classloader, and when we need to reload, > killing one and starting another session with a separate classloader. > It actually works pretty well and avoids branching the jython source, > but I'd be very interested in seeing alternative ways of dealing with > this. >=0D > Guy >=0D > -----Original Message----- > From: jyt...@li... > [mailto:jyt...@li...] On Behalf Of Kevin J. > Butler > Sent: Thursday, August 26, 2004 8:39 AM > To: jyt...@li... > Subject: Re: [Jython-dev] Jython improvements >=0D > jyt...@li... wrote: >=0D > >From: "Perez Carmona, David" <DPe...@fc...> > >I've done a series of small improvements to Jython: > >=3D0D > >- Automatic reloading of imported modules after modification > >=0D >=0D > > > Although this is not Python behavior, and therefore not=0D > appropriate for >=0D > Jython, I would like to see what you've done. >=0D > If the modifications are not too extensive, perhaps posting here would >=0D > be appropriate, otherwise, posting for downloading elsewhere (possibly >=0D > submitted as a patch to Jython, though it will likely be=0D > rejected - does >=0D > sourceforge retain and make available rejected patches??). >=0D > Thanks. >=0D > kb >=0D >=0D > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-dev >=0D >=0D > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-dev >=0D > ************************************************************* > Este correo ha sido procesado por el Antivirus del Grupo FCC. > ************************************************************* >=0D ************************************************************* Este correo ha sido procesado por el antivirus del Grupo FCC. ************************************************************* |