This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Joshua Oreman
Recipients Joshua Oreman, jab
Date 2020-08-01.05:07:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1596258452.88.0.344170246882.issue41451@roundup.psfhosted.org>
In-reply-to
Content
The problem appears to be occurring when the base class is subscripted, not when it's inherited. I can reproduce this issue on Python 3.6.10 by just evaluating Base[T].

'del Base.__slots__' after Base is constructed seems to work around the issue, and allow Base[T] to be evaluated. Of course, Base is still slotted at this point, since __slots__ are consulted only when initially building the class.
History
Date User Action Args
2020-08-01 05:07:32Joshua Oremansetrecipients: + Joshua Oreman, jab
2020-08-01 05:07:32Joshua Oremansetmessageid: <1596258452.88.0.344170246882.issue41451@roundup.psfhosted.org>
2020-08-01 05:07:32Joshua Oremanlinkissue41451 messages
2020-08-01 05:07:32Joshua Oremancreate