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

Commit136f64d

Browse files
committed
gh-106320: Remove _Py_SwappedOp from the C API
Move _Py_SwappedOp to the internal C API (pycore_object.h).
1 parenteda9ce1 commit136f64d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

‎Include/cpython/object.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,6 @@ PyAPI_FUNC(PyObject *) _PyObject_FunctionStr(PyObject *);
377377
#endif
378378

379379

380-
/* Maps Py_LT to Py_GT, ..., Py_GE to Py_LE.
381-
* Defined in object.c.
382-
*/
383-
PyAPI_DATA(int)_Py_SwappedOp[];
384-
385380
PyAPI_FUNC(void)
386381
_PyDebugAllocatorStats(FILE*out,constchar*block_name,intnum_blocks,
387382
size_tsizeof_block);

‎Include/internal/pycore_object.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,9 @@ extern PyObject* _PyCFunctionWithKeywords_TrampolineCall(
442442
PyAPI_DATA(PyTypeObject)_PyNone_Type;
443443
PyAPI_DATA(PyTypeObject)_PyNotImplemented_Type;
444444

445+
/* Maps Py_LT to Py_GT, ..., Py_GE to Py_LE. Defined in Objects/object.c. */
446+
externint_Py_SwappedOp[];
447+
445448
#ifdef__cplusplus
446449
}
447450
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp