Why can't the pointer in a PyCapsule be NULL?
Robert Latest
boblatest at yahoo.com
Fri Dec 30 12:59:10 EST 2022
Stefan Ram wrote:
> Robert Latest <boblatest at yahoo.com> writes:
>>the question is in the subject. I'd like the pointer to be able to be NULL
>>because that would make my code slightly cleaner. No big deal though.
>
> In Usenet, it is considered good style to have all relevant
> content in the body.
Makes sense.
> . On a superficial level, the answer is: "Because
> PyCapsule_GetPointer uses NULL to indicate failure."
Makes sense, too. Thanks.
More information about the Python-list
mailing list