• Home
  • Raw
  • Download

Lines Matching refs:assignment

75    single: = (equals); assignment statement
76 pair: assignment; statement
80 pair: attribute; assignment
99 An assignment statement evaluates the expression list (remember that this can be
110 or slicing), the mutable object must ultimately perform the assignment and
111 decide about its validity, and may raise an exception if the assignment is
115 .. index:: triple: target; list; assignment
117 single: * (asterisk); in assignment target list
118 single: [] (square brackets); in assignment target list
119 single: () (parentheses); in assignment target list
160 .. index:: pair: attribute; assignment
166 perform the assignment, it raises an exception (usually but not necessarily
172 both sides of the assignment operator, the right-hand side expression, ``a.x`` can access
178 assignment::
189 pair: subscription; assignment
206 raised (assignment to a subscripted sequence cannot add new items to a list).
221 .. index:: pair: slicing; assignment
241 Although the definition of assignment implies that overlaps between the
261 Augmented assignment statements
265 pair: augmented; assignment
266 single: statement; assignment, augmented
267 single: +=; augmented assignment
268 single: -=; augmented assignment
269 single: *=; augmented assignment
270 single: /=; augmented assignment
271 single: %=; augmented assignment
272 single: &=; augmented assignment
273 single: ^=; augmented assignment
274 single: |=; augmented assignment
275 single: **=; augmented assignment
276 single: //=; augmented assignment
277 single: >>=; augmented assignment
278 single: <<=; augmented assignment
280 Augmented assignment is the combination, in a single statement, of a binary
281 operation and an assignment statement:
292 An augmented assignment evaluates the target (which, unlike normal assignment
294 operation specific to the type of assignment on the two operands, and assigns
297 An augmented assignment expression like ``x += 1`` can be rewritten as ``x = x +
309 statement, the assignment done by augmented assignment statements is handled the
311 *in-place* behavior, the binary operation performed by augmented assignment is
320 Annotated assignment statements
324 pair: annotated; assignment
325 single: statement; assignment, annotated
328 :term:`Annotation <variable annotation>` assignment is the combination, in a single
329 statement, of a variable or attribute annotation and an optional assignment statement:
335 The difference from normal :ref:`assignment` is that only single target is allowed.
337 For simple names as assignment targets, if in class or module scope,
345 For expressions as assignment targets, the annotations are evaluated if
352 assignment performs the actual assignment before evaluating annotations
453 Deletion is recursively defined very similar to the way assignment is defined.
471 assignment of an empty slice of the right type (but even this is determined by
999 The :keyword:`nonlocal` statement may prepend an assignment or augmented
1000 assignment, but not an expression.