anyconfig.compat
¶
Compatiblity module
-
anyconfig.compat.
py3_iteritems
(dic)¶ wrapper for dict.items() in python 3.x.
>>> list(py3_iteritems({})) [] >>> sorted(py3_iteritems(dict(a=1, b=2))) [('a', 1), ('b', 2)]
-
anyconfig.compat.
from_iterable
()¶ chain.from_iterable(iterable) –> chain object
Alternate chain() constructor taking a single iterable argument that evaluates lazily.
-
anyconfig.compat.
iteritems
(dic)¶ wrapper for dict.items() in python 3.x.
>>> list(py3_iteritems({})) [] >>> sorted(py3_iteritems(dict(a=1, b=2))) [('a', 1), ('b', 2)]