Re: How many Leo users are still using Python3.6?

2022-01-16 Thread Josef
I am using Kubuntu LTS 20.04, which will still be supported for another year. It uses Python 3.8. I think it would be a major obstacle for Ubuntu LTS users to have to upgrade the Python version they are using. I have done that in the past, but it led to endless confusion between the versions

Re: How many Leo users are still using Python3.6?

2022-01-16 Thread Edward K. Ream
On Sun, Jan 16, 2022 at 8:43 AM Josef wrote: > I am using Kubuntu LTS 20.04, which will still be supported for another > year. It uses Python 3.8. I think it would be a major obstacle for Ubuntu > LTS users to have to upgrade the Python version they are using. I have done > that in the past, but

Managing Python 2.7 Code In Leo

2022-01-16 Thread tbp1...@gmail.com
Now that Leo is Python 3.6+ only, there is a question about using it to maintain old Python 2.x code, of which I have some that can't be converted to Python 3.6+. The issue, of course, is that checkers like flake8 will report errors which aren't actual errors for 2.7 code. This is a best a

Re: Managing Python 2.7 Code In Leo

2022-01-16 Thread tbp1...@gmail.com
Can't do it for at least one case. The code is Jython 2.7, and it will be a long time, if ever, before Jython gets up to 3+. On Sunday, January 16, 2022 at 2:11:08 PM UTC-5 Edward K. Ream wrote: > On Sun, Jan 16, 2022 at 12:20 PM tbp1...@gmail.com > wrote: > >> Now that Leo is Python 3.6+

Re: Managing Python 2.7 Code In Leo

2022-01-16 Thread Edward K. Ream
On Sun, Jan 16, 2022 at 12:20 PM tbp1...@gmail.com wrote: > Now that Leo is Python 3.6+ only, there is a question about using it to > maintain old Python 2.x code, of which I have some that can't be converted > to Python 3.6+. The issue, of course, is that checkers like flake8 will > report

Script For Counting Lines Of Python Code?

2022-01-16 Thread tbp1...@gmail.com
I'm not a big fan of counts of lines of code, but sometimes it's fun or otherwise useful. I didn't see a script to count the LOC in scripts.leo or PyLeoRef.leo, so I came up with one, but I wondered whether anyone else has a slicker one. My script counts lines of code in a Leo subtree, not in

Re: Managing Python 2.7 Code In Leo

2022-01-16 Thread tbp1...@gmail.com
The project is a Tomcat web application that uses mixed java and Jython. Most of the work is done with Jython, but there are some things that need java. In some places, java code calls Jython objects and methods, in other places Jython code calls into java. It works great. I've been