From: Stefan R. <Ste...@gm...> - 2017-05-22 18:03:55
|
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> <div>If we move away from 2.7.1 at all, the micro version should match the point where we updated python-lib last time IMO. I doubt it is 2.7.12. Maybe it's 2.7.6 or so I suspect (sorry if I should be wrong). Does someone now an efficient way to look it up?</div> <div>A different numbering scheme for marketing purposes would be misleading and might disappoint users even more.</div> <div> </div> <div>Also. I don't find Jython 2.7.1 should be the last Jython 2.7 or likewise. There will continue to be (maybe minor) progress and we should release this based on time intervals (6months was the plan, wasn't it?). IMO it's not so important that huge progress happens from version to version. Progress from 2.7.0 to 2.7.1 is actually far too large. Much more important is that there is progress at all and that it's displayed to the community by frequent releases.</div> <div> </div> <div>-Stefan</div> <div> <div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> <div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 22. Mai 2017 um 19:50 Uhr<br/> <b>Von:</b> "Jim Baker" <jim...@py...><br/> <b>An:</b> "Alan Kennedy" <jyt...@xh...><br/> <b>Cc:</b> "Darjus Loktevic" <da...@gm...>, "Jeff Allen" <ja...@fa...>, "Stefan Richthofer" <Ste...@gm...>, "Jython Developers" <jyt...@li...><br/> <b>Betreff:</b> Re: [Jython-dev] Unicode user and file names (and v2.7.1)</div> <div name="quoted-content"> <div>Alan, <div> </div> <div>That's a great suggestion. 2.7 was specifically chosen to show this correspondence. In the past, we were not so as focused on compatibility, but most of the changes — and corresponding delays — in what we have been planning to call 2.7.1 are because of the continued development on CPython 2.7, by backporting fixes from successive versions of CPython 3.</div> <div> </div> <div>So calling it 2.7.12 helps illustrate this. Any other thoughts on Alan's proposal?</div> <div> </div> <div>- Jim</div> </div> <div class="gmail_extra"> <div class="gmail_quote">On Mon, May 22, 2017 at 11:25 AM, Alan Kennedy <span><<a href="mailto:jyt...@xh..." onclick="parent.window.location.href='jyt...@xh...'; return false;" target="_blank">jyt...@xh...</a>></span> wrote: <blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;"> <div>Hi folks, <div> </div> <div>Great to see a solid 2.7.1 jython, and work begin in earnest on jython 3.</div> <div> </div> <div>I have only one small suggestion to make: if jython 2.7.1 is going to be one of the last 2.7 releases, maybe consider numbering it in a way that indicates it is derived from the latest version of cpython 2.7.12. This could indicate that it is as up-to-date as it can be, i.e. not derived from cpython 2.7.1 and then abandoned.</div> <div> </div> <div>Perception of abandonment is often a problem for jython: I think it's worth an effort to counter this mis-perception.</div> <div> </div> <div>Regards,</div> <div> </div> <div>Alan.</div> <div> </div> </div> <div class="HOEnZb"> <div class="h5"> <div class="gmail_extra"> <div class="gmail_quote">On Sun, May 21, 2017 at 4:35 PM, Darjus Loktevic <span><<a href="mailto:da...@gm..." onclick="parent.window.location.href='da...@gm...'; return false;" target="_blank">da...@gm...</a>></span> wrote: <blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;"> <div> <div> <div>Hey Guys,<br/> </div> Regarding Jython3, looks like Isaiah has done a ton of work in 2016 (CCd). Not sure how far he progressed, but indeed merging will be hard and therefore I'd say we should not diverge further while developing on both branches, but instead try to finalize 2.7 and switch to Jython3 full-time.<br/> </div> Feel free to disagree, but here's my thinking on it: <ol> <li>Release Jython 2.7.1</li> <li>Modernize the codebase. I think it's important for the project to feel modern for us to attract new contributors. <ol> <li>Java8 as the minimum (may be too much for Jython2).</li> <li>Github/core-workflow</li> <li>(Ideally) ANTLR4 for both branches, but worst case, Jython3 only. ANTLR3 is not getting much love and ANTLR4 is quite different (does not generate AST).</li> <li>Gradle, directory structure.</li> </ol> </li> <li>Develop Jython3 primarily. Only bugfixes for 2.7 series. <ol> <li>Target 3.6 (really like the typing improvements).</li> <li>Merge JyNI if possible.</li> </ol> </li> </ol> <div> <div>Cheers,</div> <div>Darjus</div> <div> <div class="m_6125419342958386497h5"> <div> <div class="gmail_quote"> <div>On Sat, May 20, 2017 at 11:45 PM Jeff Allen <<a href="mailto:ja...@fa..." onclick="parent.window.location.href='ja...@fa...'; return false;" target="_blank">ja...@fa...</a>> wrote:</div> <blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;"> <div> <p>Thanks all. +1 on the RC. Nearly there with my bit.</p> <p>I have fixed the test_runpy failure James reported. It's not Linux-specific, just I had to quieten the unlink() error to see it on Windows. Bonus: we now pass the standard CPython test_runpy. The regrtest has been running one last time as I typed. I've pushed to <a class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046moz-txt-link-freetext" href="https://bitbucket.org/tournesol/jython-utf8" target="_blank">https://bitbucket.org/tournesol/jython-utf8</a> just now.</p> I will next merge into the Jython trunk. That may not be totally smooth because of the pervasive change. And now I think about it, it's worth a note in NEWS. My time is a little limited today, so it could be much later today or tomorrow evening.<br/> <br/> Jeff</div> <div> <pre class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046moz-signature">Jeff Allen</pre> </div> <div> <div class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046moz-cite-prefix">On 20/05/2017 19:48, Jim Baker wrote:</div> <blockquote> <div>+100</div> <div class="gmail_extra"> <div class="gmail_quote">On Sat, May 20, 2017 at 12:33 PM, Darjus Loktevic <span><<a href="mailto:da...@gm..." onclick="parent.window.location.href='da...@gm...'; return false;" target="_blank">da...@gm...</a>></span> wrote: <blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;"> <div> <div> <div>Agreed regarding not blocking on 2487. That whole area needs a rewrite and we could potentially utilize libraries available for Java 8.<br/> </div> Let's get Jeff's work in and do an RC?<br/> </div> <span class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046HOEnZb"><font color="#888888">Darjus</font></span></div> <div class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046HOEnZb"> <div class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046h5"> <div class="gmail_quote"> <div>On Fri, May 19, 2017 at 7:51 PM Jim Baker <<a href="mailto:jim...@py..." onclick="parent.window.location.href='jim...@py...'; return false;" target="_blank">jim...@py...</a>> wrote:</div> <blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;"> <div>I don't necessarily see <a href="http://bugs.jython.org/issue2487" target="_blank">http://bugs.jython.org/issue2487</a> as a blocker, but it would be nice. It just hasn't come up in real usage, unlike the earlier iteration of the bug which Darjus hacked around by busy waiting. I did spend some time on trying to get the publication to work without racing, using the approach I detail in that bug, but no luck yet. (But mostly because an utter lack of time to spend on the issue.) <div> </div> <div>Merging in Jeff's recent work on Unicode is important and we should get it in. I haven't had a chance to test myself, but given Jeff's amazing attention to detail, I'm sure it's ready.</div> <div> </div> <div>The blocker for the RC - because we lost OSX support of setuptools support of installed executables - is fixed, as I just finally confirmed: <a href="http://bugs.jython.org/issue2570" target="_blank">http://bugs.jython.org/issue2570</a></div> <div> </div> </div> <div class="gmail_extra"> <div class="gmail_quote">On Fri, May 19, 2017 at 8:26 PM, Stefan Richthofer <span><<a href="mailto:Ste...@gm..." onclick="parent.window.location.href='Ste...@gm...'; return false;" target="_blank">Ste...@gm...</a>></span> wrote: <blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;"> <div> <div style="font-family: Verdana;font-size: 12.0px;"> <div> <div>AFAIK every release happens by having a successful RC that is renamed to 'release' after a while. So, per definition another RC is inevitable.</div> <div>That said, I suppose we should get <a href="http://bugs.jython.org/issue2487" target="_blank">http://bugs.jython.org/issue2487</a> fixed before we can release. I guess Jeff's work will be ready until then. At least that decision can be postponed until an RC is actually doable.</div> <div> <div> </div> <div> </div> <div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);"> <div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Samstag, 20. Mai 2017 um 02:35 Uhr<br/> <b>Von:</b> "Darjus Loktevic" <<a href="mailto:da...@gm..." onclick="parent.window.location.href='da...@gm...'; return false;" target="_blank">da...@gm...</a>><br/> <b>An:</b> "Jeff Allen" <<a href="mailto:ja...@fa..." onclick="parent.window.location.href='ja...@fa...'; return false;" target="_blank">ja...@fa...</a>>, "Jython Developers" <<a href="mailto:jyt...@li..." onclick="parent.window.location.href='jyt...@li...'; return false;" target="_blank">jyt...@li...</a>><br/> <b>Betreff:</b> Re: [Jython-dev] Unicode user and file names (and v2.7.1)</div> <div> <div> <div class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046m_8810925058365348314m_-8779070674509468614h5"> <p>Hey Jeff,</p> <p>Sounds good. Let's do another rc but to be honest I'm not even sure the RC matters much if there aren't people trying it except us.</p> <p>Thoughts?<br/> Darjus</p> <div class="gmail_quote"> <div>On Fri, May 19, 2017, 1:19 AM Jeff Allen <<a href="mailto:ja...@fa..." onclick="parent.window.location.href='ja...@fa...'; return false;" target="_blank">ja...@fa...</a>> wrote:</div> <blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;"> <div> <p>Hi Darjus.</p> <p>On inclusion, I'm happy to go with the community view, as always. On one of the related tickets (<a class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046m_8810925058365348314m_-8779070674509468614m_-528727688133917487m_1723547812866307292moz-txt-link-freetext" href="http://bugs.jython.org/issue1839" target="_blank">http://bugs.jython.org/issue1839</a>), Jim said we'd get it in if timing allowed and there was some user support.</p> <p>I'm very keen to see a 2.7.1 too. The last (soft) RC was unsuccessful, and we're still making changes, so I assume we're talking about another RC first rather than a release?</p> <p>The UTF-8 work is nearly there, but not quite: one Linux defect to fix, as noted on the same issue by James against the "latin-1" version. After all the additions in the last couple of weeks (to get full BMP support), I'm happy to find from my Linux laptop that it is still the only thing I have to do. It looks trivial. I've been unable code at all for a few days, so haven't looked into a solution, but now I'm back I expect to nail it for us today or tomorrow.</p> <p>I can, of course, merge all this myself and will. I shared your hesitancy initially, hence the fork repository, but it's turned out so well I feel it's now low risk, as long as we still have a few days.</p> <p>I will now dive under the desk and wire up my Linux dev box.</p> </div> <div> <pre class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046m_8810925058365348314m_-8779070674509468614m_-528727688133917487m_1723547812866307292moz-signature">Jeff Allen</pre> </div> <div> <div class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046m_8810925058365348314m_-8779070674509468614m_-528727688133917487m_1723547812866307292moz-cite-prefix">On 16/05/2017 21:46, Darjus Loktevic wrote:</div> <blockquote> <div> <div> <div> <div>Hey Jeff,<br/> </div> It seems your last commit to this branch is of three days ago. Is this ready for review? BTW, your changes look good to me.<br/> I'm a little hesitant to merge this since we've had an RC and REALLY have to release 2.7.1 It's miles better than 2.7.0.<br/> </div> Cheers,</div> Darjus</div> <div class="gmail_quote"> <div>On Mon, May 1, 2017 at 6:34 AM Jeff Allen <<a href="mailto:ja...@fa..." onclick="parent.window.location.href='ja...@fa...'; return false;" target="_blank">ja...@fa...</a>> wrote:</div> <blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">I went for sys.getfilesystemencoding() == 'utf-8' and it works pretty<br/> well. Rather than just push directly I have published to here:<br/> <br/> <a href="https://bitbucket.org/tournesol/jython-utf8" target="_blank">https://bitbucket.org/tournesol/jython-utf8</a><br/> <br/> I write to ask for a second or third pair of eyes on it. Please tell me<br/> you can see it and whether it breaks things you care about.<br/> <br/> I touched a lot of files in the core and import system: quite a lot of<br/> tricky stuff with loaders and search paths has been adjusted. I think it<br/> a good sign that I changed hardly anything in the standard library we<br/> inherit from CPython, that we hadn't already specialised.<br/> <br/> By "works pretty well" above, I mean that the regression tests run<br/> cleanly for me when my user name is "Épreuve", where previously Jython<br/> died horribly. The launcher works from a Chinese user name too, as long<br/> as I localise Windows to China (CPython 2.7 feature). I can use the<br/> prompt and runs some tests with that setup, but I can't run the<br/> regression test yet, and printing a stack dump is fatal, so there's a<br/> bit more to do for Chinese.<br/> <br/> I think this means we have solid support for "latin-1" languages, but<br/> there are still places where we fatally assume bytes are Unicode code<br/> points.<br/> <br/> Jeff Allen<br/> <br/> On 05/04/2017 08:57, Jeff Allen wrote:<br/> > I've been working on <a href="http://bugs.jython.org/issue2356" target="_blank">http://bugs.jython.org/issue2356</a> which I'd like to<br/> > get in 2.7.1 -- it seems rather poor that Jython simply does not run for<br/> > users whose names have an un-American character ;). I know this issue is<br/> > not a blocker in most minds.<br/> ><br/> > I've made pretty good progress by allowing file names to be unicode<br/> > objects more often than they would be in CPython 2, which usually<br/> > returns them as bytes in some encoding that we may not know. I've got<br/> > the launcher to work properly, and straightened the logic in our<br/> > printing of trace-backs and exceptions from Java. Unicode file names<br/> > seems the way to go for Jython because:<br/> ><br/> > 1. Java gives us competently decoded unicode file names, from<br/> > java.io.File, etc.. Re-encoding the result will be a pain (and<br/> > overlooked).<br/> > 2. We appear not to have the codec we need ('mbcs'), that CPython<br/> > reports on Windows via sys.getfilesystemencoding().<br/> > 3. We do this already. In 2.7.0, os.getcwd() returns unicode if necessary.<br/> ><br/> > Most regression tests pass. However, I'm struggling with test_doctest.<br/> > Problems arise when mixing unicode and bytes when one byte is 128 and<br/> > over. This happens in ''.join(list) and formatted output like "%s %s" %<br/> > (ustr, bstr). The behaviour of these is identical with CPython: they<br/> > raise UnicodeDecodeError because the bytes are promoted to characters<br/> > with a strict ascii interpretation. This happens a lot in doctest.py and<br/> > traceback.py, for example, where file paths and stack dumps that include<br/> > them, are now frequently unicode, while other inputs are byte data<br/> > containing file paths presented in the console encoding.<br/> ><br/> > I can beat this into submission with enough customisation of the stdlib<br/> > modules, but that always makes me uncomfortable. I usually see that as a<br/> > hint that user code might also need to change. This may be unfounded. I<br/> > can probably ensure no impact to users of only ascii paths, and the<br/> > others seem unable to run Jython at all (in the scope of this issue).<br/> > However, I'm seriously wondering if I should pursue the approach where<br/> > file names from Java are re-encoded to bytes (maybe as utf-8<br/> > everywhere), but that's grim.<br/> ><br/> > Thoughts?<br/> ><br/> <br/> <br/> ------------------------------------------------------------------------------<br/> Check out the vibrant tech community on one of the world's most<br/> engaging tech sites, Slashdot.org! <a href="http://sdm.link/slashdot" target="_blank">http://sdm.link/slashdot</a><br/> _______________________________________________<br/> Jython-dev mailing list<br/> <a href="mailto:Jyt...@li..." onclick="parent.window.location.href='Jyt...@li...'; return false;" target="_blank">Jyt...@li...</a><br/> <a href="https://lists.sourceforge.net/lists/listinfo/jython-dev" target="_blank">https://lists.sourceforge.net/lists/listinfo/jython-dev</a></blockquote> </div> </blockquote> </div> </blockquote> </div> </div> </div> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! <a href="http://sdm.link/slashdot_______________________________________________" target="_blank">http://sdm.link/slashdot_______________________________________________</a> Jython-dev mailing list <a href="mailto:Jyt...@li..." onclick="parent.window.location.href='Jyt...@li...'; return false;" target="_blank">Jyt...@li...</a> <a href="https://lists.sourceforge.net/lists/listinfo/jython-dev" target="_blank">https://lists.sourceforge.net/lists/listinfo/jython-dev</a></div> </div> </div> </div> </div> </div> <br/> ------------------------------------------------------------------------------<br/> Check out the vibrant tech community on one of the world's most<br/> engaging tech sites, Slashdot.org! <a href="http://sdm.link/slashdot" target="_blank">http://sdm.link/slashdot</a><br/> _______________________________________________<br/> Jython-dev mailing list<br/> <a href="mailto:Jyt...@li..." onclick="parent.window.location.href='Jyt...@li...'; return false;" target="_blank">Jyt...@li...</a><br/> <a href="https://lists.sourceforge.net/lists/listinfo/jython-dev" target="_blank">https://lists.sourceforge.net/lists/listinfo/jython-dev</a><br/> </blockquote> </div> </div> </blockquote> </div> </div> </div> </blockquote> </div> </div> <fieldset class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046mimeAttachmentHeader"> </fieldset> <pre>------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! <a class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046moz-txt-link-freetext" href="http://sdm.link/slashdot" target="_blank">http://sdm.link/slashdot</a></pre> <fieldset class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046mimeAttachmentHeader"> </fieldset> <pre>_______________________________________________ Jython-dev mailing list <a class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046moz-txt-link-abbreviated" href="mailto:Jyt...@li..." onclick="parent.window.location.href='Jyt...@li...'; return false;" target="_blank">Jyt...@li...</a> <a class="m_6125419342958386497m_274999079042873323m_8002637137386272236m_9159863954202074352m_-2554705276724151046moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/jython-dev" target="_blank">https://lists.sourceforge.net/lists/listinfo/jython-dev</a> </pre> </blockquote> </div> </blockquote> </div> </div> </div> </div> </div> </div> <br/> ------------------------------------------------------------------------------<br/> Check out the vibrant tech community on one of the world's most<br/> engaging tech sites, Slashdot.org! <a href="http://sdm.link/slashdot" target="_blank">http://sdm.link/slashdot</a><br/> _______________________________________________<br/> Jython-dev mailing list<br/> <a href="mailto:Jyt...@li..." onclick="parent.window.location.href='Jyt...@li...'; return false;" target="_blank">Jyt...@li...</a><br/> <a href="https://lists.sourceforge.net/lists/listinfo/jython-dev" target="_blank">https://lists.sourceforge.net/lists/listinfo/jython-dev</a><br/> </blockquote> </div> </div> </div> </div> </blockquote> </div> </div> </div> </div> </div> </div></div></body></html> |