◐ Shell
clean mode source ↗

bpo-31338: Mention that Py_UNREACHABLE was added in 3.7 by encukou · Pull Request #4337 · python/cpython

Conversation

The macro was added for bpo-31338 in commit b2e5794

serhiy-storchaka

@serhiy-storchaka serhiy-storchaka changed the title Docs: Mention that Py_UNREACHABLE was added in 3.7 bpo-31338: Mention that Py_UNREACHABLE was added in 3.7

Nov 8, 2017

@serhiy-storchaka

vstinner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created a follow-up PR: PR #4339, to add other missing versionadded markups on C macros.


.. c:macro:: Py_ABS(x)

Return the absolute value of ``x``.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you add versionadded, you may also document:

  • Py_MIN, Py_MAX, Py_ABS: Python 3.3
  • Py_STRINGIFY: Python 3.4
  • Py_MEMBER_SIZE: Python 3.6

embray pushed a commit to embray/cpython that referenced this pull request

Nov 9, 2017
The macro was added for bpo-31338 in commit b2e5794

Labels