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

operator.iand

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


Import

import operator
from operator import iand

Signature & Overview

operator.iand(a, b, /)

Same as a &= b.

Usage

import operator

s = {1, 2, 3}
assert operator.iand(s, {2, 3, 4}) == {2, 3}

Gotchas

REPL Inspect

from operator import iand
help(iand)

Linked from

Related notes