Full threadplq·inspect module offers isgenerator and isgeneratorfunction. the author should have used that.https://docs.python.org/2/library/inspect.html#inspect.isgen...View on HN