Re: [LyX/master] Update Python scripts to Python 3+

2024-12-30 Thread Scott Kostyshak
On Mon, Dec 30, 2024 at 09:54:30AM +, José Matos wrote: > On Fri, 2024-12-20 at 00:28 +0100, Scott Kostyshak wrote: > Regarding type checking in Python there are type annotations that are used to > do > type hinting. > [cut] Thanks for this detailed explanations. It's good to learn about typ

Re: [LyX/master] Update Python scripts to Python 3+

2024-12-30 Thread José Matos
On Fri, 2024-12-20 at 00:28 +0100, Scott Kostyshak wrote: > On Thu, Dec 19, 2024 at 10:31:20PM +, José Matos wrote: > > On Thu, 2024-12-19 at 15:57 +0100, Scott Kostyshak wrote: > > > Is the problem that the object should not be a string? > > > > Yes, it was expecting bytes. > > Why not asser

Re: [LyX/master] Update Python scripts to Python 3+

2024-12-20 Thread Scott Kostyshak
On Fri, Dec 20, 2024 at 12:53:54AM +0100, Pavel Sanda wrote: > On Fri, Dec 20, 2024 at 12:28:22AM +0100, Scott Kostyshak wrote: > > Works well on Welcome.lyx. On my original use case, I get the following now: > > New case for the test machinery? P Could be! Are there a lot of code paths for thex

Re: [LyX/master] Update Python scripts to Python 3+

2024-12-19 Thread Pavel Sanda
On Fri, Dec 20, 2024 at 12:28:22AM +0100, Scott Kostyshak wrote: > Works well on Welcome.lyx. On my original use case, I get the following now: New case for the test machinery? P -- lyx-devel mailing list lyx-devel@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-devel

Re: [LyX/master] Update Python scripts to Python 3+

2024-12-19 Thread Scott Kostyshak
On Thu, Dec 19, 2024 at 10:31:20PM +, José Matos wrote: > On Thu, 2024-12-19 at 15:57 +0100, Scott Kostyshak wrote: > > Is the problem that the object should not be a string? > > Yes, it was expecting bytes. Why not assert that at the beginning of the Python function? Or, what's the best way

Re: [LyX/master] Update Python scripts to Python 3+

2024-12-19 Thread José Matos
On Thu, 2024-12-19 at 15:57 +0100, Scott Kostyshak wrote: > Is the problem that the object should not be a string? Yes, it was expecting bytes. > $ python3 --version > Python 3.12.3 Do you know the Whac-A-Mole game? :-) It was the same game that I was playing here. I modernized the code a bit,

Re: [LyX/master] Update Python scripts to Python 3+

2024-12-19 Thread Scott Kostyshak
On Mon, Jun 10, 2024 at 10:30:07AM +, José Matos wrote: > commit 04ecabef6005640450cb20e813eeb2bb284b9487 > Author: José Matos > Date: Mon Jun 10 11:29:56 2024 +0100 > > Update Python scripts to Python 3+ > > Remove support for Python 2 > > Use formatted strings where