GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-73487: Convert _decimal to use Argument Clinic (part 5) by skirpichev · Pull Request #137948 · python/cpython

gh-73487: Convert _decimal to use Argument Clinic (part 5) #137948

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.

Sign up for GitHub

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

Merged
AA-Turner merged 5 commits into python:main from skirpichev:ac-decimal/73487-pt5
Aug 21, 2025

Uh oh!

There was an error while loading. Please reload this page.

Merged

gh-73487: Convert _decimal to use Argument Clinic (part 5) #137948

Changes from 1 commit
Commits
Show all changes
5 commits
Select commit Hold shift + click to select a range
e4d3775
gh-73487: Convert _decimal to use Argument Clinic (part 5)
skirpichev Aug 20, 2025
3c66cf5
+1
skirpichev Aug 21, 2025
d3f8428
Apply suggestions from code review
skirpichev Aug 21, 2025
94537e1
+2
skirpichev Aug 21, 2025
416bce2
address review: add comments & fix parameter names
skirpichev Aug 21, 2025
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
address review: add comments & fix parameter names
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@skirpichev
skirpichev committed Aug 21, 2025
commit 416bce2b962f29042733e802bfaafbcd9a43b287

There are no files selected for viewing

15 changes: 10 additions & 5 deletions 15 Modules/_decimal/_decimal.c
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6026,7 +6026,9 @@ static PyType_Spec dec_spec = {
/* Macros for converting mpdecimal functions to Context methods */
/************************************************************************/

/* Boolean context method. */
/* Boolean context method.
Argument Clinic provides PyObject *context, PyObject *x
*/
#define DecCtx_BoolFunc(MPDFUNC) \
{ \
PyObject *ret; \
Expand All @@ -6039,7 +6041,9 @@ static PyType_Spec dec_spec = {
return ret; \
}

/* Boolean context method. MPDFUNC does NOT use a context. */
/* Boolean context method. MPDFUNC does NOT use a context.
Argument Clinic provides PyObject *context, PyObject *x
*/
#define DecCtx_BoolFunc_NO_CTX(MPDFUNC) \
{ \
PyObject *ret; \
Expand Down Expand Up @@ -6079,7 +6083,7 @@ static PyType_Spec dec_spec = {
}

/* Binary context method.
Argument Clinic provides PyObject *context, PyObject *v, PyObject *w
Argument Clinic provides PyObject *context, PyObject *x, PyObject *y
*/
#define DecCtx_BinaryFunc(MPDFUNC) \
{ \
Expand Down Expand Up @@ -6110,6 +6114,7 @@ static PyType_Spec dec_spec = {
/*
* Binary context method. The context is only used for conversion.
* The actual MPDFUNC does NOT take a context arg.
* Argument Clinic provides PyObject *context, PyObject *x, PyObject *y
*/
#define DecCtx_BinaryFunc_NO_CTX(MPDFUNC) \
{ \
Expand All @@ -6133,8 +6138,8 @@ static PyType_Spec dec_spec = {
}

/* Ternary context method.
Argument Clinic provides PyObject *context, PyObject *v, PyObject *w,
PyObject *x
Argument Clinic provides PyObject *context, PyObject *x, PyObject *y,
PyObject *z
*/
#define DecCtx_TernaryFunc(MPDFUNC) \
{ \
Expand Down
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.