[Python-Dev] Re: How to spell Py_return_None and friends

Martin v. Löwis martin at v.loewis.de
Sun Oct 19 03:37:11 EDT 2003


"Brett C." <bac at OCF.Berkeley.EDU> writes:

> OK, great.  I can code them up, but fair warning, I have not done C
> macros in a *long* time so if someone would rather do it then please
> do so.  Regardless, Brett Newbie Question time: what file should they
> go in?

I would put them along with the things they are returning,
i.e. Py_RETURN_TRUE into boolobject.h, Py_RETURN_NONE into object.h
(after the Py_None definition).

Regards,
Martin




More information about the Python-Dev mailing list