Skip to content

gh-73487: Convert _decimal to use Argument Clinic (part 1) #137606

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Prev Previous commit
drop redundant comments
  • Loading branch information
skirpichev committed Aug 12, 2025
commit 15860bd1baf7a3e9cd322cd80b28b120ea20b8fc
8 changes: 0 additions & 8 deletions Modules/_decimal/_decimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2877,8 +2877,6 @@ PyDecType_FromSequenceExact(PyTypeObject *type, PyObject *v,
#define PyDec_FromSequenceExact(st, sequence, context) \
PyDecType_FromSequenceExact((st)->PyDec_Type, sequence, context)

/* class method */

/*[clinic input]
@classmethod
_decimal.Decimal.from_float
Expand Down Expand Up @@ -2947,8 +2945,6 @@ PyDecType_FromNumberExact(PyTypeObject *type, PyObject *v, PyObject *context)
}
}

/* class method */

/*[clinic input]
@classmethod
_decimal.Decimal.from_number
Expand Down Expand Up @@ -3803,8 +3799,6 @@ dec_as_long(PyObject *dec, PyObject *context, int round)
return PyLongWriter_Finish(writer);
}

/* Convert a Decimal to its exact integer ratio representation. */

/*[clinic input]
_decimal.Decimal.as_integer_ratio

Expand Down Expand Up @@ -4120,8 +4114,6 @@ PyDec_Round(PyObject *dec, PyObject *args)
}
}

/* Return the DecimalTuple representation of a PyDecObject. */

/*[clinic input]
_decimal.Decimal.as_tuple

Expand Down
Loading