[python-committers] Py_UNREACHABLE

Barry Warsaw barry at python.org
Fri Sep 15 16:46:27 EDT 2017


On Sep 15, 2017, at 12:36, Victor Stinner <victor.stinner at gmail.com> wrote:
> 
> The good news is that other C macros are now documented as well!
> 
> https://docs.python.org/dev/c-api/intro.html#useful-macros
> 
> If you look at Include/pymacro.h there are even more crazy macros
> which are not documented yet, like Py_BUILD_ASSERT().
> 
> I like Py_ARRAY_LENGTH() which gives the length of an array and not
> its size in bytes. The macro is nice because it fails with a
> compilation error if the argument is not an array! For example, it
> fails on "char *not_an_array" or "char not_an_array_neither[];".

PRs anyone? :)

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://mail.python.org/pipermail/python-committers/attachments/20170915/e7c6c0e9/attachment.sig>


More information about the python-committers mailing list