cpython/Objects
Pablo Galindo Salgado 3594ebca2c
[3.10] bpo-46940: Don't override existing AttributeError suggestion information (GH-31710) (GH-31724)
When an exception is created in a nested call to PyObject_GetAttr, any
external calls will override the context information of the
AttributeError that we have already placed in the most internal call.
This will cause the suggestions we create to nor work properly as the
attribute name and object that we will be using are the incorrect ones.

To avoid this, we need to check first if these attributes are already
set and bail out if that's the case..
(cherry picked from commit 3b3be05a16)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-03-07 13:18:36 +00:00
..
clinic bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH-31578) 2022-02-25 15:47:07 +01:00
stringlib bpo-43179: Generalise alignment for optimised string routines (GH-24624) 2021-03-31 12:12:39 +02:00
abstract.c bpo-30570: Use Py_EnterRecursiveCall() in issubclass() (GH-29048) 2021-10-22 14:46:56 -07: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-41870: Avoid the test when nargs=0 (GH-22462) 2020-10-01 13:50:40 +09:00
bytearrayobject.c bpo-42128: Structural Pattern Matching (PEP 634) (GH-22917) 2021-02-26 14:51:55 -08:00
bytes_methods.c bpo-43179: Generalise alignment for optimised string routines (GH-24624) 2021-03-31 12:12:39 +02:00
bytesobject.c bpo-42128: Structural Pattern Matching (PEP 634) (GH-22917) 2021-02-26 14:51:55 -08:00
call.c bpo-42990: Further refactoring of PyEval_ functions. (GH-24368) 2021-02-01 10:42:03 +00:00
capsule.c bpo-42519: Replace PyObject_MALLOC() with PyObject_Malloc() (GH-23587) 2020-12-01 10:37:39 +01:00
cellobject.c bpo-40268: Remove unused pycore_pymem.h includes (GH-19531) 2020-04-15 02:57:50 +02:00
classobject.c bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION (GH-27202) 2021-07-28 06:29:17 -07:00
codeobject.c [3.10] Add more const modifiers. (GH-26691). (GH-26692) 2021-06-12 18:44:32 +01:00
complexobject.c bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772) (GH-27796) 2021-08-17 18:38:03 +01:00
descrobject.c docs: correct outdated MappingProxyType docstrings (GH-30281) 2022-01-19 13:57:09 -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-44114: Remove redundant cast. (GH-26098) 2021-05-13 14:07:31 -07:00
enumobject.c bpo-42536: GC track recycled tuples (GH-23623) 2020-12-04 19:45:57 -08:00
exceptions.c [3.10] Remove trailing spaces (GH-28709) 2021-10-03 20:03:49 +03:00
fileobject.c bpo-43916: PyStdPrinter_Type uses Py_TPFLAGS_DISALLOW_INSTANTIATION (GH-25749) 2021-04-30 14:56:27 +02:00
floatobject.c bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH-31578) 2022-02-25 15:47:07 +01:00
frameobject.c [3.10] bpo-45355: More use of sizeof(_Py_CODEUNIT) (GH-28720). (GH-28721) 2021-10-04 17:07:21 +03:00
funcobject.c bpo-46236: Fix PyFunction_GetAnnotations() returned tuple. (GH-30409) 2022-01-05 05:12:21 -08:00
genericaliasobject.c [3.10] Remove trailing spaces (GH-28709) 2021-10-03 20:03:49 +03:00
genobject.c [3.10] bpo-46009: Do not exhaust generator when send() method raises (GH-29986). (GH-29988) 2021-12-08 14:46:32 +00:00
interpreteridobject.c bpo-43962: Fix _PyInterpreterState_IDIncref() (GH-25683) 2021-04-28 13:40:44 +02:00
iterobject.c bpo-44963: Implement send() and throw() methods for anext_awaitable objects (GH-27955) 2021-09-07 03:52:53 -07:00
listobject.c [3.10] Fix typos in the Objects directory (GH-28766) (GH-28797) 2021-10-07 07:31:33 -07:00
listsort.txt [3.10] Fix typos in the Objects directory (GH-28766) (GH-28797) 2021-10-07 07:31:33 -07:00
lnotab_notes.txt bpo-42739: Don't use sentinels to mark end of line table. (GH-25657) 2021-04-29 13:12:51 +01:00
longobject.c [3.10] Fix a potential reference-counting bug in long_pow (GH-26690) (GH-26703) 2021-06-13 08:58:32 +01:00
memoryobject.c bpo-43977: Use tp_flags for collection matching (GH-25723) 2021-04-30 09:50:28 +01:00
methodobject.c bpo-33930: Fix segfault with deep recursion when cleaning method objects (GH-27678) (GH-27719) 2021-08-11 10:32:44 +02:00
moduleobject.c bpo-43901: Fix refleaks in test_module (GH-25754) 2021-04-30 17:26:45 +01:00
namespaceobject.c bpo-39075: types.SimpleNamespace no longer sorts attributes in its repr (GH-19430) 2020-05-15 18:27:54 -07:00
object.c [3.10] bpo-46940: Don't override existing AttributeError suggestion information (GH-31710) (GH-31724) 2022-03-07 13:18:36 +00:00
obmalloc.c bpo-45521: Fix a bug in the obmalloc radix tree code. (GH-29051) (GH-29122) 2021-10-21 08:39:58 -07:00
odictobject.c bpo-46085: Fix iterator cache mechanism of OrderedDict. (GH-30290) 2021-12-29 21:29:03 -08:00
picklebufobject.c bpo-36785: PEP 574 implementation (GH-7076) 2019-05-26 17:10:09 +02:00
rangeobject.c bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000) 2021-09-04 13:39:30 -07:00
README Issue #18093: Factor out the programs that embed the runtime 2014-07-25 21:52:14 +10:00
setobject.c bpo-46615: Don't crash when set operations mutate the sets (GH-31120) 2022-02-11 12:44:17 -08:00
sliceobject.c bpo-43268: Pass interp rather than tstate to internal functions (GH-24580) 2021-02-19 15:10:45 +01:00
structseq.c bpo-43916: Move the _PyStructSequence_InitType function to the internal API (GH-25854) 2021-05-03 15:50:24 +01:00
tupleobject.c bpo-43977: Use tp_flags for collection matching (GH-25723) 2021-04-30 09:50:28 +01:00
typeobject.c [3.10] bpo-46732: fix __bool__ docstring (GH-31301) (GH-31473) 2022-02-21 09:18:48 -08:00
typeslots.inc bpo-41073: PyType_GetSlot() can now accept static types. (GH-21931) 2020-11-10 12:53:46 -08:00
typeslots.py bpo-41073: PyType_GetSlot() can now accept static types. (GH-21931) 2020-11-10 12:53:46 -08: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 [3.10] bpo-46006: Revert "bpo-40521: Per-interpreter interned strings (GH-20085)" (GH-30422) (GH-30425) 2022-01-06 16:12:28 +01:00
unicodetype_db.h closes bpo-39926: Update Unicode to 13.0.0. (GH-18910) 2020-03-10 20:41:34 -07:00
unionobject.c bpo-44662: Add ability to annotate types.Union (GH-27214) (GH-27461) 2021-07-30 11:31:54 +02:00
weakrefobject.c bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) (GH-27324) 2021-07-24 11:45:13 +02:00

Source files for various builtin objects