Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite41182e

Browse files
authored
Merge branch 'main' into komet/lzma-mt
2 parentsdc55f0f +b4240fd commite41182e

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
returnPyFloat_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-
returnNULL;
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-
returnNULL;
2388-
}
2389-
23902385
round=_PyObject_LookupSpecial(number,&_Py_ID(__round__));
23912386
if (round==NULL) {
23922387
if (!PyErr_Occurred())

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp