Re: gnulib-tool.py: Simplify file list construction.

2024-04-08 Thread Collin Funk
Hi Bruno, On 4/8/24 12:30 PM, Bruno Haible wrote: > Typically, when one changes a function, one should ask oneself > "should the doc string be updated?" Yes, I forget this sometimes... > This is better. But wait: If a return value is a list with unspecified > sorting order, and doesn't contain d

Re: gnulib-tool.py: Simplify file list construction.

2024-04-08 Thread Bruno Haible
Hi Collin, > Patch 0005 changes a list to a set. Previously, it checked if each > file was a member of the list before appending it. We can just let > Python do this for us. I've also sorted before returning to make it > behave like gnulib-tool.sh. Typically, when one changes a function, one shou

gnulib-tool.py: Simplify file list construction.

2024-04-08 Thread Collin Funk
ltdict >>> var = defaultdict(set) >>> var['a'].add(1) >>> print(var) defaultdict(, {'a': {1}}) [1] https://docs.python.org/3/library/collections.html#defaultdict-objects CollinFrom 24af1bb4778f683be73726a3e0b47a022dd75196 Mon Sep 17 00:00:00 2001 From: Coll