@@ -940,12 +940,12 @@ _decimal.Context.Etop
940940Return a value equal to Emax - prec + 1.
941941
942942This is the maximum exponent if the _clamp field of the context is
943- set to 1 (IEEE clamp mode). Etop() must not be negative.
943+ set to 1 (IEEE clamp mode).
944944[clinic start generated code]*/
945945
946946static PyObject *
947947_decimal_Context_Etop_impl (PyObject * self )
948- /*[clinic end generated code: output=f0a3f6e1b829074e input=35b9defc69d5e5d1 ]*/
948+ /*[clinic end generated code: output=f0a3f6e1b829074e input=a3e53bbf31ffd330 ]*/
949949{
950950 return PyLong_FromSsize_t (mpd_etop (CTX (self )));
951951}
@@ -6785,7 +6785,7 @@ _decimal.Context.power
67856785Compute a**b.
67866786
67876787If 'a' is negative, then 'b' must be integral. The result will be
6788- inexact unless 'a ' is integral and the result is finite and can be
6788+ inexact unless 'b ' is integral and the result is finite and can be
67896789expressed exactly in 'precision' digits. In the Python version the
67906790result is always correctly rounded, in the C version the result is
67916791almost always correctly rounded.
@@ -6803,7 +6803,7 @@ restrictions hold:
68036803static PyObject *
68046804_decimal_Context_power_impl (PyObject * context , PyTypeObject * cls ,
68056805 PyObject * base , PyObject * exp , PyObject * mod )
6806- /*[clinic end generated code: output=d06d40c37cdd69dc input=178a254468ec189b ]*/
6806+ /*[clinic end generated code: output=d06d40c37cdd69dc input=660210a6607ca4b0 ]*/
68076807{
68086808 PyObject * a , * b , * c = NULL ;
68096809 PyObject * result ;
@@ -7063,13 +7063,13 @@ _decimal_Context_apply_impl(PyObject *context, PyTypeObject *cls,
70637063/*[clinic input]
70647064_decimal.Context.canonical = _decimal.Context.is_normal
70657065
7066- Return a new instance of x .
7066+ Return x unchanged .
70677067[clinic start generated code]*/
70687068
70697069static PyObject *
70707070_decimal_Context_canonical_impl (PyObject * context , PyTypeObject * cls ,
70717071 PyObject * x )
7072- /*[clinic end generated code: output=f213e433e2032e5e input=025ecb106ac15bff ]*/
7072+ /*[clinic end generated code: output=f213e433e2032e5e input=f8fd49573263a2b6 ]*/
70737073{
70747074 decimal_state * state = PyType_GetModuleState (cls );
70757075 if (!PyDec_Check (state , x )) {
0 commit comments