Re: Python 2 @file/@clean Trees in Python 3 Leo?

2021-03-06 Thread Edward K. Ream
On Sat, Mar 6, 2021 at 8:45 AM tbp1...@gmail.com wrote: Thanks, Edward. > You're welcome. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+uns

Re: Python 2 @file/@clean Trees in Python 3 Leo?

2021-03-06 Thread tbp1...@gmail.com
Thanks, Edward. On Saturday, March 6, 2021 at 6:54:44 AM UTC-5 Edward K. Ream wrote: > On Fri, Mar 5, 2021 at 10:27 PM tbp1...@gmail.com > wrote: > > Is there a way to have an @clean or @file tree that is valid Python 2, and >> save it despite Python 3 errors? >> > > @bool check-python-code-on

Re: Python 2 @file/@clean Trees in Python 3 Leo?

2021-03-06 Thread Edward K. Ream
On Fri, Mar 5, 2021 at 10:27 PM tbp1...@gmail.com wrote: Is there a way to have an @clean or @file tree that is valid Python 2, and > save it despite Python 3 errors? > @bool check-python-code-on-write = False But the premise of your question is faulty. With both @clean and @file Leo *will* sav

Re: python 2 remnants: create an issue for each or...?

2019-11-21 Thread Matt Wilkie
started: https://github.com/leo-editor/leo-editor/issues/1446 -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this

Re: python 2 remnants: create an issue for each or...?

2019-11-19 Thread Edward K. Ream
On Tue, Nov 19, 2019 at 12:34 PM Matt Wilkie wrote: > I noticed a function[0] today that was created to simulate python 3, which > is no longer necessary now that py2 support has been dropped. There's > probably dozens of these scattered throughout. How should they be flagged > for refactoring an

Re: Python 2?

2018-03-13 Thread Edward K. Ream
On Mon, Mar 12, 2018 at 3:50 PM, David Szent-Györgyi wrote: > > There may be a better option than JSON. I recall a blog posting about the > limitations of JSON that are overcome by AXON > . > The posting states that unlike JSON

Re: Python 2?

2018-03-12 Thread David Szent-Györgyi
On Sunday, March 11, 2018 at 7:19:24 PM UTC-4, Edward K. Ream wrote: > > I have just created #800: Replace pickle with json everywhere in Leo > . > > Imo, this is a high priority item. It should have been done long ago. > Terry, do you agr

Re: Python 2?

2018-03-11 Thread Edward K. Ream
On Sat, Mar 10, 2018 at 6:52 PM, Terry Brown wrote: Bottom line I think pickle's a bad format for anything except transient > serialization > ​Let's google "python alternative to pickle": First hit: Don't Pickle Your Data . The recommendati

Re: Python 2?

2018-03-10 Thread Terry Brown
Yes, although it seems to have been worse since Vitalige's cache related work. Python 2/3 pickle protocols aren't compatible by default. It's possible that there's some relatively new code that should be changed to use an older protocol, not sure about that. Bottom line I think pickle's a bad fo