Skip to content

Commit e41182e

Browse files
authored
Merge branch 'main' into komet/lzma-mt
2 parents dc55f0f + b4240fd commit e41182e

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

Doc/library/collections.abc.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ ABC Inherits from Abstract Methods Mi
136136
:class:`Collection` ``__len__`` ``index``, and ``count``
137137

138138
:class:`MutableSequence` :class:`Sequence` ``__getitem__``, Inherited :class:`Sequence` methods and
139-
``__setitem__``, ``append``, ``reverse``, ``extend``, ``pop``,
140-
``__delitem__``, ``remove``, and ``__iadd__``
139+
``__setitem__``, ``append``, ``clear``, ``reverse``, ``extend``,
140+
``__delitem__``, ``pop``, ``remove``, and ``__iadd__``
141141
``__len__``,
142142
``insert``
143143

Modules/mathmodule.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,11 +2074,6 @@ math_trunc(PyObject *module, PyObject *x)
20742074
return PyFloat_Type.tp_as_number->nb_int(x);
20752075
}
20762076

2077-
if (!_PyType_IsReady(Py_TYPE(x))) {
2078-
if (PyType_Ready(Py_TYPE(x)) < 0)
2079-
return NULL;
2080-
}
2081-
20822077
math_module_state *state = get_math_module_state(module);
20832078
trunc = _PyObject_LookupSpecial(x, state->str___trunc__);
20842079
if (trunc == NULL) {

Python/bltinmodule.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2382,11 +2382,6 @@ builtin_round_impl(PyObject *module, PyObject *number, PyObject *ndigits)
23822382
{
23832383
PyObject *round, *result;
23842384

2385-
if (!_PyType_IsReady(Py_TYPE(number))) {
2386-
if (PyType_Ready(Py_TYPE(number)) < 0)
2387-
return NULL;
2388-
}
2389-
23902385
round = _PyObject_LookupSpecial(number, &_Py_ID(__round__));
23912386
if (round == NULL) {
23922387
if (!PyErr_Occurred())

0 commit comments

Comments
 (0)