Numpy array literals
Open
feature
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
What about allowing in-place operations for tuples like so:
```
(a, b) += (c, d) # equivalent to a+= c; b +=d
A = (1, 2, 3)
B = (2, 3, 4)
C = A * B # looks a bit like matrix manipulation but isn't
print(C) # (2, 6, 12)
```
I guess the problem is how to define the semantics, as many different behaviour are imaginable (like += for first element but /= for second). Also it's nothing Python-typical other than allowing tuple-assignment like `(a, b) = (b * 2, a +1)`
Contributor guide
Assessment
This issue has not been assessed yet.