Message407425
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. |
|
Date |
User |
Action |
Args |
2021-12-01 04:00:07 | madphysicist | set | recipients:
+ madphysicist, rhettinger, terry.reedy, r.david.murray, docs@python, iritkatriel |
2021-12-01 04:00:06 | madphysicist | set | messageid: <1638331206.96.0.189374371514.issue31042@roundup.psfhosted.org> |
2021-12-01 04:00:06 | madphysicist | link | issue31042 messages |
2021-12-01 04:00:06 | madphysicist | create | |
|