[Python-Dev] Re: Restrict the type of __slots__

2022-03-19 Thread Eryk Sun
On 3/19/22, Eryk Sun wrote: > On 3/18/22, Ronald Oussoren via Python-Dev wrote: >> >> - if __slots__ is a dict keep it as is >> - Otherwise use tuple(__slots__) while constructing the class and store >> that >> value in the __slots__ attribute of the class > > If this is just for pydoc, then it c

[Python-Dev] Re: Restrict the type of __slots__

2022-03-19 Thread Eryk Sun
On 3/18/22, Ronald Oussoren via Python-Dev wrote: > > - if __slots__ is a dict keep it as is > - Otherwise use tuple(__slots__) while constructing the class and store that > value in the __slots__ attribute of the class If this is just for pydoc, then it can be updated with new behavior. For exam