Message300346
I noticed some odd behaviour on classes defining __setitem__.
Using del on a class defining __setitem__ but not __delitem__ results in "AttributeError: __delitem__".
On classes definig neiter __setitem__ nor __delitem__ on the other hand this results in "TypeError: 'WithoutSetItem' object doesn't support item deletion".
See the appended example script. |
|
Date |
User |
Action |
Args |
2017-08-16 10:48:18 | raumzeitkeks | set | recipients:
+ raumzeitkeks |
2017-08-16 10:48:18 | raumzeitkeks | set | messageid: <1502880498.02.0.663608848315.issue31218@psf.upfronthosting.co.za> |
2017-08-16 10:48:17 | raumzeitkeks | link | issue31218 messages |
2017-08-16 10:48:17 | raumzeitkeks | create | |
|