<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Le 31 août 2011 à 17:20, <a href="mailto:python-ideas-request@python.org">python-ideas-request@python.org</a> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">I have often thought that would be a nice to have feature, but to be<span class="Apple-converted-space"> </span><br>honest, I have never found a use for it that was absolutely necessary. I<span class="Apple-converted-space"> </span><br>have always found another way to solve the problem.<br><br>To make it work using just ordinary assignment syntax, as you suggest,<span class="Apple-converted-space"> </span><br>requires more than just an "alias" function. It would need changes to<span class="Apple-converted-space"> </span><br>the Python internals. Possibly very large changes. Without a convincing<span class="Apple-converted-space"> </span><br>use-case, I don't think that will happen.<br><br>So even though I think this would be a neat feature to have, and<span class="Apple-converted-space"> </span><br>possibly even useful, I don't think it is useful enough to justify the<span class="Apple-converted-space"> </span><br>work needed to make it happen.<br><br>--<span class="Apple-converted-space"> </span><br>Steven<br></span></blockquote><br></div><div>I don't agree with you when you say there is no necessary use case, e.g. I have two images in a gui and they must stay at the same position (relatively one to the other) but follow the movements of the arrow keys (truthful!). You can't do it by using an intermediate list because the list object is mutable but his data not:</div><div>------------------------</div><div>>>> list = [3,]</div><div>>>> a = list[0]</div><div>>>> list[0] = 6</div><div>>>> a</div><div>3</div><div>-------------------------</div><div>I really don't see any other solution, even I'm sure it would be a twisted operation and I don't find it very pythonic...</div><div><br></div><div><i>Amicalement,</i></div><div>Peio</div></body></html>