cpython/Objects
Victor Stinner 850a4bd839
Restore PyObject_IsInstance() comment (GH-18345)
Restore PyObject_IsInstance() comment explaining why only tuples of
types are accepted, but not general sequence. Comment written by
Guido van Rossum in commit 03290ecbf1
which implements isinstance(x, (A, B, ...)). The comment was lost in
a PyObject_IsInstance() optimization:
commit ec569b7947.

Cleanup also the code. recursive_isinstance() is no longer recursive,
so rename it to object_isinstance(), whereas object_isinstance() is
recursive and so rename it to object_recursive_isinstance().
2020-02-04 13:42:13 +01:00
..
clinic Document CodeType.replace (GH-17776) 2020-01-01 06:11:16 +00:00
stringlib bpo-36051: Fix compiler warning. (GH-18325) 2020-02-03 19:03:34 +09:00
abstract.c Restore PyObject_IsInstance() comment (GH-18345) 2020-02-04 13:42:13 +01:00
accu.c bpo-35081: Move accu.h to Include/internal/pycore_accu.h (GH-10271) 2018-11-01 02:30:36 +01:00
boolobject.c bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464) 2019-05-30 19:13:39 -07:00
bytearrayobject.c bpo-37840: Fix handling of negative indices in bytearray_getitem() (GH-15250) 2019-09-09 09:28:34 -07:00
bytes_methods.c bpo-38383: Fix possible integer overflow in startswith() of bytes and bytearray. (GH-16603) 2019-10-06 15:17:18 +03:00
bytesobject.c bpo-39542: Simplify _Py_NewReference() (GH-18332) 2020-02-03 17:55:04 +01:00
call.c bpo-38644: Add _PyEval_EvalCode() (GH-17183) 2019-11-16 01:03:22 +01:00
capsule.c bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464) 2019-05-30 19:13:39 -07:00
cellobject.c bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464) 2019-05-30 19:13:39 -07:00
classobject.c bpo-37340: Remove PyMethod_ClearFreeList() and PyCFunction_ClearFreeList() (GH-17284) 2019-11-20 12:59:12 +01:00
codeobject.c bpo-38631: Avoid Py_FatalError() in PyCode_New() (GH-18215) 2020-01-27 23:24:13 +01:00
complexobject.c closes bpo-39415: Remove unused codes from longobject.c complexobject.c floatobject.c. (GH-18105) 2020-01-21 18:49:30 -08:00
descrobject.c bpo-39487: Merge duplicated _Py_IDENTIFIER identifiers in C code (GH-18254) 2020-01-30 15:20:25 -08:00
dict-common.h bpo-33312: Fix clang ubsan out of bounds warnings in dict. (GH-6537) 2018-04-19 22:41:19 -07:00
dictnotes.txt Issue #15055: update dictnotes.txt. Patch by Mark Shannon. 2012-06-24 21:03:45 +02:00
dictobject.c bpo-39542: Simplify _Py_NewReference() (GH-18332) 2020-02-03 17:55:04 +01:00
enumobject.c bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464) 2019-05-30 19:13:39 -07:00
exceptions.c bpo-37757: Disallow PEP 572 cases that expose implementation details (GH-15131) 2019-08-25 23:45:40 +10:00
fileobject.c bpo-39487: Merge duplicated _Py_IDENTIFIER identifiers in C code (GH-18254) 2020-01-30 15:20:25 -08:00
floatobject.c Fix 5-space indentation and trailing whitespace (GH-18311) 2020-02-02 11:37:02 +00:00
frameobject.c bpo-33387: Fix compiler warning in frame_block_unwind() (GH-18099) 2020-01-21 12:47:29 +01:00
funcobject.c bpo-19072: Make @classmethod support chained decorators (GH-8405) 2019-08-24 15:37:25 -07:00
genobject.c bpo-39386: Prevent double awaiting of async iterator (GH-18081) 2020-01-21 00:49:30 +02:00
interpreteridobject.c bpo-38005: Remove support of string argument in InterpreterID(). (GH-16227) 2019-09-25 18:35:57 +03:00
iterobject.c bpo-39487: Merge duplicated _Py_IDENTIFIER identifiers in C code (GH-18254) 2020-01-30 15:20:25 -08:00
listobject.c bpo-39489: Remove COUNT_ALLOCS special build (GH-18259) 2020-02-03 15:17:15 +01:00
listsort.txt Fixes in sorting descriptions (GH-18317) 2020-02-03 08:47:20 -08:00
lnotab_notes.txt bpo-38115: Deal with invalid bytecode offsets in lnotab (GH-16079) 2019-09-28 07:49:15 -07:00
longobject.c bpo-39489: Remove COUNT_ALLOCS special build (GH-18259) 2020-02-03 15:17:15 +01:00
memoryobject.c bpo-38631: Avoid Py_FatalError() in _memory_release() (GH-18214) 2020-01-27 22:37:44 +01:00
methodobject.c bpo-37340: Remove PyMethod_ClearFreeList() and PyCFunction_ClearFreeList() (GH-17284) 2019-11-20 12:59:12 +01:00
moduleobject.c bpo-39487: Merge duplicated _Py_IDENTIFIER identifiers in C code (GH-18254) 2020-01-30 15:20:25 -08:00
namespaceobject.c bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464) 2019-05-30 19:13:39 -07:00
object.c bpo-39542: Simplify _Py_NewReference() (GH-18332) 2020-02-03 17:55:04 +01:00
obmalloc.c closes bpo-30364: Replace deprecated no_address_safety_analysis attribute. (GH-17702) 2019-12-26 20:51:34 -06:00
odictobject.c bpo-39487: Merge duplicated _Py_IDENTIFIER identifiers in C code (GH-18254) 2020-01-30 15:20:25 -08:00
picklebufobject.c bpo-36785: PEP 574 implementation (GH-7076) 2019-05-26 17:10:09 +02:00
rangeobject.c bpo-39487: Merge duplicated _Py_IDENTIFIER identifiers in C code (GH-18254) 2020-01-30 15:20:25 -08:00
README Issue #18093: Factor out the programs that embed the runtime 2014-07-25 21:52:14 +10:00
setobject.c bpo-38631: Add _Py_NO_RETURN to functions calling Py_FatalError() (GH-18278) 2020-01-30 13:09:11 +01:00
sliceobject.c Make PyXXX_Fini() functions private (GH-15531) 2019-08-27 00:12:32 +02:00
structseq.c bpo-38650: Constify PyStructSequence_UnnamedField. (GH-17005) 2019-11-16 18:55:29 +02:00
tupleobject.c bpo-39542: Simplify _Py_NewReference() (GH-18332) 2020-02-03 17:55:04 +01:00
typeobject.c bpo-39487: Merge duplicated _Py_IDENTIFIER identifiers in C code (GH-18254) 2020-01-30 15:20:25 -08:00
typeslots.inc add Py_tp_finalize slot (closes #24345) 2015-06-01 10:12:48 -05:00
typeslots.py Issue #26662: Set PYTHON_FOR_GEN in configure 2016-07-26 12:48:08 +02:00
unicodectype.c Removed unintentional trailing spaces in non-external and non-generated C files. 2015-03-18 21:53:15 +02:00
unicodeobject.c bpo-39542: Simplify _Py_NewReference() (GH-18332) 2020-02-03 17:55:04 +01:00
unicodetype_db.h closes bpo-36861: Update Unicode database to 12.1.0. (GH-13214) 2019-05-08 20:59:35 -07:00
weakrefobject.c bpo-38395: Fix ownership in weakref.proxy methods (GH-16632) 2019-10-08 16:30:50 +01:00

Source files for various builtin objects