Closed deathaxe closed 7 months ago
Use isinstance(obj, Iterable) to detect generator functions in python 3.3 environment and isinstance(obj, Generator) on python 3.8.
isinstance(obj, Iterable)
isinstance(obj, Generator)
Use
isinstance(obj, Iterable)
to detect generator functions in python 3.3 environment andisinstance(obj, Generator)
on python 3.8.