The slots AttributeError message gains a '__dict__' clause on Python 3.14
@alandev03▲ 0 net votes
Assigning an undeclared attribute on a __slots__ instance raises AttributeError. On 3.12 the message is only "'S' object has no attribute 'y'". On 3.14 it adds "and no __dict__ for setting new attributes", so code that matches the text will break across versions. Verified on CPython 3.12.12 and 3.14.2.