cpython/Objects
Miss Islington (bot) ebe5e216c8
[3.14] gh-143006: Fix and optimize mixed comparison of float and int (GH-143084) (GH-143623)
When comparing negative non-integer float and int with the same number
of bits in the integer part, __neg__() in the int subclass returning
not an int caused an assertion error.

Now the integer is no longer negated. Also, reduced the number of
temporary created Python objects.
(cherry picked from commit 66bca383bd)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-01-09 17:32:23 +00:00
..
clinic [3.14] gh-129559: Remove extra dot in bytearray.resize AC (GH-140134) (#140143) 2025-10-15 14:06:18 +03:00
mimalloc gh-123826: Fix unused function warnings in mimalloc on NetBSD (#123827) 2024-09-09 13:22:28 -04:00
stringlib [3.14] gh-127971: fix off-by-one read beyond the end of a string during search (GH-132574) (#136628) 2025-07-13 13:58:03 +00:00
abstract.c gh-131238: Remove includes from pycore_interp.h (#131495) 2025-03-20 11:35:23 +00:00
boolobject.c gh-111178: remove redundant casts for functions with correct signatures (#131673) 2025-04-01 17:18:11 +02:00
bytearrayobject.c [3.14] gh-143003: Fix possible shared buffer overflow in bytearray.extend() (GH-143086) (GH-143447) 2026-01-06 13:48:45 +02:00
bytes_methods.c gh-121165: protect macro expansion of ADJUST_INDICES with do-while(0) (#121166) 2024-07-02 16:27:51 +05:30
bytesobject.c [3.14] gh-140939: Fix memory leak in _PyBytes_FormatEx error path (GH-140957) (#141154) 2025-11-06 16:20:03 +00:00
call.c [3.14] gh-142737: Handle lost io.open in _Py_FindSourceFile (GH-142747) (GH-142773) 2025-12-15 23:30:00 +00:00
capsule.c gh-111178: fix UBSan failures in Objects/capsule.c (GH-128239) 2025-01-08 14:55:04 +01:00
cellobject.c gh-127271: Replace use of PyCell_GET/SET (gh-127272) 2024-12-03 10:33:06 -08:00
classobject.c [3.14] gh-135607: remove null checking of weakref list in dealloc of extension modules and objects (#135614) (#136119) 2025-06-30 15:59:22 +02:00
codeobject.c [3.14] gh-140815: Fix faulthandler for invalid/freed frame (GH-140921) (#140981) 2025-11-04 11:18:23 +00:00
complexobject.c gh-111178: Change Argument Clinic signature for @classmethod (#131157) 2025-03-12 17:42:07 +01:00
descrobject.c GH-124715: Move trashcan mechanism into Py_Dealloc (GH-132280) 2025-04-30 11:37:53 +01:00
dictnotes.txt bpo-46845: Reduce dict size when all keys are Unicode (GH-31564) 2022-03-02 08:09:28 +09:00
dictobject.c [3.14] gh-142534: Avoid TSan warnings in dictobject.c (gh-142544) (gh-142603) 2025-12-11 21:51:02 +00:00
enumobject.c gh-131525: Cache the result of tuple_hash (#131529) 2025-03-27 09:57:06 -04:00
exceptions.c GH-124715: Move trashcan mechanism into Py_Dealloc (GH-132280) 2025-04-30 11:37:53 +01:00
fileobject.c gh-111178: fix UBSan failures for PyStdPrinter_Object (#131607) 2025-03-24 10:57:14 +01:00
floatobject.c [3.14] gh-143006: Fix and optimize mixed comparison of float and int (GH-143084) (GH-143623) 2026-01-09 17:32:23 +00:00
frameobject.c [3.14] gh-137200: support frame lineno setter with BRANCH_LEFT and BRANCH_RIGHT events (GH-137229) (#137280) 2025-08-11 17:07:19 +03:00
funcobject.c [3.14] gh-135607: remove null checking of weakref list in dealloc of extension modules and objects (#135614) (#136119) 2025-06-30 15:59:22 +02:00
genericaliasobject.c [3.14] gh-105487: Fix __dir__ entries of GenericAlias (GH-138578) (GH-138629) 2025-10-07 23:12:13 +02:00
genobject.c [3.14] gh-142766: Clear frame when generator.close() is called (gh-142838) (#142899) 2025-12-17 18:33:15 +00:00
interpolationobject.c [3.14] gh-132661: Add default value (of "") for Interpolation.expression (GH-136441) (#136511) 2025-07-10 14:52:18 +00:00
iterobject.c gh-131666: mark anext_awaitable.close as a METH_NOARGS instead of METH_VARARGS (#131671) 2025-03-25 09:03:22 +05:30
listobject.c [3.14] GH-133136: Revise QSBR to reduce excess memory held (gh-135473) (#135912) 2025-07-08 10:58:01 -07:00
listsort.txt GH-116939: Rewrite binarysort() (#116940) 2024-03-21 22:27:25 -05:00
lnotab_notes.txt gh-119786: add code object doc, inline locations.md into it (#126832) 2024-11-22 19:27:41 +00:00
longobject.c [3.14] gh-142554: avoid divmod crashes due to bad _pylong.int_divmod (GH-142673) (#142696) 2025-12-14 09:04:37 +00:00
memoryobject.c [3.14] gh-142664: fix PyObject_Hash invokation post GH-143217 (GH-143223) (#143224) 2025-12-27 14:55:45 +00:00
methodobject.c [3.14] gh-135607: remove null checking of weakref list in dealloc of extension modules and objects (#135614) (#136119) 2025-06-30 15:59:22 +02:00
moduleobject.c [3.14] gh-135607: remove null checking of weakref list in dealloc of extension modules and objects (#135614) (#136119) 2025-06-30 15:59:22 +02:00
namespaceobject.c [3.14] gh-135878: Fix crash in types.SimpleNamespace.__repr__ (GH-135889) (#135896) 2025-06-24 16:58:57 +00:00
object.c [3.14] gh-142589: Fix PyUnstable_Object_IsUniqueReferencedTemporary (gh-142593) (#142597) 2025-12-11 20:08:45 +00:00
object_layout.md GH-115776: Allow any fixed sized object to have inline values (GH-123192) 2024-08-21 15:52:04 +01:00
object_layout_312.gv GH-115776: Embed the values array into the object, for "normal" Python objects. (GH-116115) 2024-04-02 11:59:21 +01:00
object_layout_312.png [3.14] gh-71648: Optimize PNG files (GH-138842) (GH-138851) 2025-10-07 20:52:12 +02:00
object_layout_313.gv GH-115776: Embed the values array into the object, for "normal" Python objects. (GH-116115) 2024-04-02 11:59:21 +01:00
object_layout_313.png [3.14] gh-71648: Optimize PNG files (GH-138842) (GH-138851) 2025-10-07 20:52:12 +02:00
object_layout_full_312.gv GH-96068: Document object layout (GH-96069) 2022-08-23 13:55:43 +01:00
object_layout_full_312.png [3.14] gh-71648: Optimize PNG files (GH-138842) (GH-138851) 2025-10-07 20:52:12 +02:00
object_layout_full_313.gv GH-115776: Embed the values array into the object, for "normal" Python objects. (GH-116115) 2024-04-02 11:59:21 +01:00
object_layout_full_313.png [3.14] gh-71648: Optimize PNG files (GH-138842) (GH-138851) 2025-10-07 20:52:12 +02:00
obmalloc.c [3.14] GH-133136: Revise QSBR to reduce excess memory held (gh-135473) (#135912) 2025-07-08 10:58:01 -07:00
odictobject.c [3.14] gh-125996: fix thread safety of collections.OrderedDict (GH-133734) (#140053) 2025-10-13 23:25:24 +05:30
picklebufobject.c [3.14] gh-135607: remove null checking of weakref list in dealloc of extension modules and objects (#135614) (#136119) 2025-06-30 15:59:22 +02:00
rangeobject.c [3.14] GH-141312: Allow only integers to longrangeiter_setstate state (GH-141317) (GH-141559) 2025-11-15 21:30:25 +02:00
README Issue #18093: Factor out the programs that embed the runtime 2014-07-25 21:52:14 +10:00
setobject.c [3.14] gh-132657: optimize PySet_Contains for frozenset (GH-141183) (gh-141773) 2025-11-19 17:01:49 -08:00
sliceobject.c gh-111178: Fix function signatures for multiple tests (#131496) 2025-03-20 12:27:03 +01:00
structseq.c gh-131525: Cache the result of tuple_hash (#131529) 2025-03-27 09:57:06 -04:00
templateobject.c [3.14] gh-142433: Move deref to below the error when checking for laststring (GH-142402) (#142524) 2025-12-10 16:07:59 +00:00
tupleobject.c [3.14] GH-139951: Fix major GC performance regression. Backport of GH-140262 (GH-140447) 2025-10-23 15:26:58 +01:00
typeobject.c [3.14] gh-123241: Don't modify ref count during visitation (GH-142232) (#142567) 2025-12-11 10:51:11 -08:00
typeslots.inc Revert "gh-133395: add option for extension modules to specialize BINARY_OP/SUBSCR, apply to arrays (#133396)" (#133498) 2025-05-06 13:12:26 +03:00
typeslots.py gh-124153: Implement PyType_GetBaseByToken() and Py_tp_token slot (GH-124163) 2024-09-18 09:18:19 +02:00
typevarobject.c [3.14] gh-143089: Fix ParamSpec default examples to use list instead of tuple (GH-143179) (#143538) 2026-01-08 11:49:41 +00:00
unicodectype.c gh-82045: Correct and deduplicate "isprintable" docs; add test. (GH-130118) 2025-02-14 18:16:47 +01:00
unicodeobject.c [3.14] Remove dead stores to 'size' in UTF-8 decoder (unicodeobject.c) (GH-140637) (#140658) 2025-10-27 09:21:43 +00:00
unicodetype_db.h closes gh-124016: update Unicode to 16.0.0 (#124017) 2024-09-13 07:47:04 -07:00
unionobject.c [3.14] gh-140348: Fix using | on unusual objects plus Unions (GH-140383) (#140948) 2025-11-03 15:16:03 +00:00
weakrefobject.c gh-129354: Use PyErr_FormatUnraisable() function (#129511) 2025-01-31 13:16:08 +01:00

Source files for various builtin objects