Skip to content

Lack of proper inplace operator support #449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
adrian17 opened this issue Feb 12, 2019 · 0 comments
Closed

Lack of proper inplace operator support #449

adrian17 opened this issue Feb 12, 2019 · 0 comments

Comments

@adrian17
Copy link
Contributor

Python

>>> a = b = [1]
>>> a += [2]
>>> print(a, b)
[1, 2] [1, 2]

RustPython

>>>>> a = b = [1]
>>>>> a += [2]
>>>>> print(a, b)
[1, 2] [1]

Looks like a += b is implemented only as a = a + b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant