Skip to content
Snippets Groups Projects
Unverified Commit 3e81dd22 authored by Alexandru Fikl's avatar Alexandru Fikl
Browse files

mention that serialize_container should be deterministic

parent 768a0070
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,10 @@ def serialize_container(ary: ArrayContainer) -> Iterable[Tuple[Any, Any]]:
r"""Serialize the array container into an iterable over its components.
The order of the components and their identifiers are entirely under
the control of the container class.
the control of the container class. However, the order is required to be
deterministic, i.e. two calls to :func:`serialize_container` on the same
array container should return an iterable with the components in the same
order.
If *ary* is mutable, the serialization function is not required to ensure
that the serialization result reflects the array state at the time of the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment