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 raumzeitkeks
Recipients raumzeitkeks
Date 2017-08-16.10:48:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502880498.02.0.663608848315.issue31218@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-08-16 10:48:18raumzeitkekssetrecipients: + raumzeitkeks
2017-08-16 10:48:18raumzeitkekssetmessageid: <1502880498.02.0.663608848315.issue31218@psf.upfronthosting.co.za>
2017-08-16 10:48:17raumzeitkekslinkissue31218 messages
2017-08-16 10:48:17raumzeitkekscreate