Re: gnulib-tool.py: Add a new GLFileTable class.

2024-04-25 Thread Bruno Haible
Collin Funk wrote: > for instance variables I > rather put them outside __init__. It also serves as a decent place to > add comments that don't belong in doc strings. Yes. For instance variables that are used in several methods it would seem odd to declare them in __init__. To me, __init__ is the

Re: gnulib-tool.py: Add a new GLFileTable class.

2024-04-25 Thread Collin Funk
On 4/25/24 1:11 AM, Bruno Haible wrote: > Interesting syntax. This makes the class easier to understand. You're welcome > to do the same thing with the other classes (except for GLError.message, which > is private to a single method). I agree. I originally wanted to add it to GLModuleTable when I

Re: gnulib-tool.py: Add a new GLFileTable class.

2024-04-25 Thread Bruno Haible
Collin Funk wrote: > I've applied the following patch adding a GLFileTable class as > discussed here: > > https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00357.html Thanks! Looks good. > +class GLFileTable: > +'''The GLFileTable class stores file information for the duration of