picop.cygenobject#

Generator-object helpers.

picop.cygenobject.gen_check(ob)#

Return True if ob is a generator (PyGen_Check). :type ob: object :param ob:

Return type:

bool

picop.cygenobject.gen_check_exact(ob)#

Return True if type(ob) is types.GeneratorType (PyGen_CheckExact). :type ob: object :param ob:

Return type:

bool

picop.cygenobject.gen_eq(a, b)#

Return True if a is b (generator identity; CPython object.__eq__). :type a: object :param a: :type b: object :param b:

Return type:

bool