StackOverflow Questions for Tag: augmented-assignment

MoSwilam
MoSwilam

Reputation: 944

Why is `foo += a || b` not equivalent to `foo = foo + a || b`?

Score: 0

Views: 143

Answers: 1

Read More
eucalculia
eucalculia

Reputation: 1807

Why does += behave unexpectedly on lists?

Score: 179

Views: 130519

Answers: 8

Read More
Lee McNally
Lee McNally

Reputation: 1

Adding (concatenating) tuples to lists in Python

Score: 0

Views: 20

Answers: 0

Read More
Tony Power
Tony Power

Reputation: 1178

pytorch's augmented assignment and requires_grad

Score: 5

Views: 93

Answers: 1

Read More
abukaj
abukaj

Reputation: 2712

Why there is no speed benefit of in-place multiplication when returning a numpy array?

Score: 2

Views: 86

Answers: 1

Read More
CPlus
CPlus

Reputation: 4620

How do the augmented assignment operators in C behave when the signedness of the operands do not match?

Score: 1

Views: 113

Answers: 1

Read More
goldie
goldie

Reputation: 1

python augmented assignment statements, display the results as per the output

Score: -3

Views: 37

Answers: 1

Read More
antelk
antelk

Reputation: 29

Augmented assignment unexpected behavior in Python

Score: 0

Views: 46

Answers: 1

Read More
Fahim
Fahim

Reputation: 348

When do the Augmented Assignment operations behave as in-place operations and when do not?

Score: 0

Views: 66

Answers: 2

Read More
Njx
Njx

Reputation: 121

Why does augmented assignment behave differently when adding a string to a list

Score: 6

Views: 315

Answers: 3

Read More
user13551473
user13551473

Reputation:

Adding a string to a list adds each character separately

Score: 3

Views: 1527

Answers: 3

Read More
joaquin
joaquin

Reputation: 85615

Adding a string to a list using augmented assignment

Score: 13

Views: 8675

Answers: 7

Read More
Zach Gates
Zach Gates

Reputation: 4130

Augmented assignment in the middle of expression causes SyntaxError

Score: 0

Views: 1462

Answers: 2

Read More
jason
jason

Reputation: 4801

"+=" causing SyntaxError in Python

Score: 3

Views: 725

Answers: 6

Read More
abukaj
abukaj

Reputation: 2712

Is there an equivalent of `sum()` builtin which uses augmented assignment?

Score: 8

Views: 247

Answers: 1

Read More
Aldahunter
Aldahunter

Reputation: 658

Is Reflected Augmented Addition (__iadd__) in Python?

Score: 1

Views: 298

Answers: 1

Read More
Evan Benn
Evan Benn

Reputation: 1689

Why is a destructuring augmented assignment not possible?

Score: 1

Views: 118

Answers: 1

Read More
martineau
martineau

Reputation: 123423

How to implement "__iadd__()" for an immutable type?

Score: 4

Views: 1411

Answers: 4

Read More
Seshadri R
Seshadri R

Reputation: 1212

Regex for augmented assignment operation using positive look-ahead or look-behind

Score: 1

Views: 112

Answers: 1

Read More
Manngo
Manngo

Reputation: 829

Python operator precedence with augmented assignment including sequence

Score: -2

Views: 174

Answers: 1

Read More
PreviousPage 1Next