picop.cypycapsule#

Capsule helpers.

picop.cypycapsule.capsule_check_exact(o)#

Return True if type(o) is types.CapsuleType (PyCapsule_CheckExact). :type o: object :param o:

Return type:

bool

picop.cypycapsule.capsule_eq(a, b)#

Return True if a is b (capsule identity; not pointer/name content). :type a: object :param a: :type b: object :param b:

Return type:

bool

picop.cypycapsule.capsule_is_valid(capsule, name)#

Return True if capsule is a valid capsule named name.

Notes

name must be bytes, not str.

Parameters:
Return type:

bool