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 madphysicist
Recipients docs@python, iritkatriel, madphysicist, r.david.murray, rhettinger, terry.reedy
Date 2021-12-01.04:00:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638331206.96.0.189374371514.issue31042@roundup.psfhosted.org>
In-reply-to
Content
I closed the issue (it's already been rejected), primarily based on

> a.__index__ = <whatever> is an unauthorized use of a *reserved* word and the effect of such usage is not and need not be documented.  

> The entry for __*__ does include "*Any* use of __*__ names, in any context, that does not follow explicitly documented use, is subject to breakage without warning."  To me, that says that the effect of the reserved-word assignment is undefined.  It could be made to raise an exception.

It's like filing a bug report for UB in C.
History
Date User Action Args
2021-12-01 04:00:07madphysicistsetrecipients: + madphysicist, rhettinger, terry.reedy, r.david.murray, docs@python, iritkatriel
2021-12-01 04:00:06madphysicistsetmessageid: <1638331206.96.0.189374371514.issue31042@roundup.psfhosted.org>
2021-12-01 04:00:06madphysicistlinkissue31042 messages
2021-12-01 04:00:06madphysicistcreate