Message328781
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. |
|
Date |
User |
Action |
Args |
2018-10-29 01:29:58 | steven.daprano | set | recipients:
+ steven.daprano, joydiamond |
2018-10-29 01:29:58 | steven.daprano | set | messageid: <1540776598.29.0.788709270274.issue35098@psf.upfronthosting.co.za> |
2018-10-29 01:29:58 | steven.daprano | link | issue35098 messages |
2018-10-29 01:29:57 | steven.daprano | create | |
|