syntax difference

Chris Angelico rosuav at gmail.com
Tue Jun 19 17:16:33 EDT 2018


On Wed, Jun 20, 2018 at 7:07 AM,  <bart4858 at gmail.com> wrote:
> Do you think that a feature like swap(x,y) literally only works on two simple variables? X and y represent any two lvalue expressions. For example, a[I] and a[I+1]. Python will evaluate each twice.
>
> My version sets up two references then exchanges what they point to with one bytecode.
>

Congratulations. You have something that you, personally, consider
important, and which has zero externally-visible impact. But what
about the couple dozen important features that I listed?

ChrisA



More information about the Python-list mailing list