On this page
  1. operator.iconcat
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

operator.iconcat

Prev: operator.iand | Up: operator | Next: operator.ifloordiv
Rel: operator.abs, operator.add, operator.and_, operator.attrgetter
Ref: docs.python.org — operator.iconcat
Tags: #public #python3 #stdlib #operator


Import

import operator
from operator import iconcat

Signature & Overview

operator.iconcat(a, b, /)

Same as a += b, for a and b sequences.

Usage

import operator

xs = [1]
assert operator.iconcat(xs, [2, 3]) is xs and xs == [1, 2, 3]

Gotchas

REPL Inspect

from operator import iconcat
help(iconcat)

Linked from

Related notes