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 steven.daprano
Recipients joydiamond, steven.daprano
Date 2018-10-29.01:29:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1540776598.29.0.788709270274.issue35098@psf.upfronthosting.co.za>
In-reply-to
Content
I think the real WTF here is that you can write to arbitrary dunder attributes even if they aren't listed in __slots__.

py> Color.__NOBODY_expects_the_Spanish_Inquisition__ = "What?"
py> Color.__NOBODY_expects_the_Spanish_Inquisition__
'What?'

I think that assigning to Color.__new__ should have failed in the first place.
History
Date User Action Args
2018-10-29 01:29:58steven.dapranosetrecipients: + steven.daprano, joydiamond
2018-10-29 01:29:58steven.dapranosetmessageid: <1540776598.29.0.788709270274.issue35098@psf.upfronthosting.co.za>
2018-10-29 01:29:58steven.dapranolinkissue35098 messages
2018-10-29 01:29:57steven.dapranocreate