evhub / evhub/coconut

Numpy array literals

Open
#433 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.