-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-106919: Use role 8000 :c:macro: for referencing the C "constants" #106920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-106919: Use role :c:macro: for referencing the C "constants" #106920
Conversation
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
@@ -343,7 +343,7 @@ Other objects | |||
*items*. Format units for sequences may be nested. | |||
|
|||
It is possible to pass "long" integers (integers whose value exceeds the | |||
platform's :const:`LONG_MAX`) however no proper range checking is done --- the | |||
platform's :c:macro:`LONG_MAX`) however no proper range checking is done --- the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
platform's :c:macro:`LONG_MAX`) however no proper range checking is done --- the | |
platform's :c:macro:`!LONG_MAX`) however no proper range checking is done --- the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it may be better to solve this for standard C names globally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with one nit. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
Sorry @serhiy-storchaka, I had trouble checking out the |
…stants" (pythonGH-106920). (cherry picked from commit fcc816d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-106951 is a backport of this pull request to the 3.12 branch. |
…stants" (pythonGH-106920). (cherry picked from commit fcc816d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-106952 is a backport of this pull request to the 3.11 branch. |
📚 Documentation preview 📚: https://cpython-previews--106920.org.readthedocs.build/