Re: Python Iterable

2024-03-27 Thread Collin Funk
On 3/27/24 9:52 AM, Bruno Haible wrote: > I agree. My main considerations are: > > - Can someone with little exposure to Python understand and modify the > code? When you write 'list' and the developer knows that 'list' means > what is known as "array" in other programming languages, the

Re: Python Iterable

2024-03-27 Thread Darshit Shah
On Wed, Mar 27, 2024, at 17:52, Bruno Haible wrote: > Collin Funk wrote: >> I have also made a conscious choice not to use more abstract >> collections like 'Iterable' even though they are recommended [4]. >> >> The first is because some functions check the type: >> >> def setModules(self,

Re: Python Iterable

2024-03-27 Thread Bruno Haible
Collin Funk wrote: > I have also made a conscious choice not to use more abstract > collections like 'Iterable' even though they are recommended [4]. > > The first is because some functions check the type: > > def setModules(self, modules: list[str] | tuple[str]) -> None: > '''Set the