nanoutils.empty

A module with empty (immutable) containers and iterables.

Can be used as default arguments for functions.

Index

EMPTY_CONTAINER

An empty Container.

EMPTY_COLLECTION

An empty Collection.

EMPTY_SET

An empty Set.

EMPTY_SEQUENCE

An empty Sequence.

EMPTY_MAPPING

An empty Mapping.

API

nanoutils.EMPTY_CONTAINER: Container = frozenset()

An immutable empty Container.

nanoutils.EMPTY_COLLECTION: Collection = frozenset()

An immutable empty Collection.

nanoutils.EMPTY_SET: Set = frozenset()

An immutable empty Set.

nanoutils.EMPTY_SEQUENCE: Sequence = tuple()

An immutable empty Sequence.

nanoutils.EMPTY_MAPPING: Mapping = types.MappingProxyType({})

An immutable empty Mapping.