Skip to content

Commit 3685ae6

Browse files
committed
XXX fix signatures of setcontext, __deepcopy__ and fma
1 parent 108497e commit 3685ae6

File tree

2 files changed

+17
-142
lines changed

2 files changed

+17
-142
lines changed

Modules/_decimal/_decimal.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,13 +1987,14 @@ _decimal_Decimal_getcontext_impl(PyObject *self)
19871987
_decimal.Decimal.setcontext
19881988
19891989
context: object
1990+
/
19901991
19911992
Set a new default context.
19921993
[clinic start generated code]*/
19931994

19941995
static PyObject *
1995-
_decimal_Decimal_setcontext_impl(PyObject *self, PyObject *context)
1996-
/*[clinic end generated code: output=28637d8482b37a71 input=d008c3c978217ccd]*/
1996+
_decimal_Decimal_setcontext(PyObject *self, PyObject *context)
1997+
/*[clinic end generated code: output=20e7a377da25e02f input=4a5f0e2f660ee0e5]*/
19971998
{
19981999
return PyDec_SetCurrentContext(self, context);
19992000
}
@@ -5886,12 +5887,13 @@ _decimal_Decimal___copy___impl(PyObject *self)
58865887
_decimal.Decimal.__deepcopy__
58875888
58885889
memo: object
5890+
/
58895891
58905892
[clinic start generated code]*/
58915893

58925894
static PyObject *
5893-
_decimal_Decimal___deepcopy___impl(PyObject *self, PyObject *memo)
5894-
/*[clinic end generated code: output=816138d04d950813 input=e8be5af4ad08e6cd]*/
5895+
_decimal_Decimal___deepcopy__(PyObject *self, PyObject *memo)
5896+
/*[clinic end generated code: output=988fb34e0136b376 input=f95598c6f43233aa]*/
58955897
{
58965898
return Py_NewRef(self);
58975899
}
@@ -7057,14 +7059,15 @@ _decimal.Context.fma
70577059
x: object
70587060
y: object
70597061
z: object
7062+
/
70607063
70617064
Return x multiplied by y, plus z.
70627065
[clinic start generated code]*/
70637066

70647067
static PyObject *
70657068
_decimal_Context_fma_impl(PyObject *self, PyObject *x, PyObject *y,
70667069
PyObject *z)
7067-
/*[clinic end generated code: output=4f8c4d693c85c0c0 input=307f564c9dd2c342]*/
7070+
/*[clinic end generated code: output=4f8c4d693c85c0c0 input=52cb95a6a55e7730]*/
70687071
{
70697072
return ctx_mpd_qfma(self, x, y, z);
70707073
}

Modules/_decimal/clinic/_decimal.c.h

Lines changed: 9 additions & 137 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)