cpython/Python
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
_warnings.c
asdl.c
ast.c
ast_opt.c
ast_unparse.c
bltinmodule.c
bootstrap_hash.c
ceval.c [3.10] bpo-46940: Don't override existing AttributeError suggestion information (GH-31710) (GH-31724) 2022-03-07 13:18:36 +00:00
ceval_gil.h
codecs.c
compile.c bpo-46831: Update __build_class__ comment (GH-31522) 2022-03-02 22:02:59 -08:00
condvar.h
context.c
dtoa.c
dup2.c
dynamic_annotations.c
dynload_hpux.c bpo-44959: Add fallback to extension modules with '.sl' suffix on HP-UX (GH-27857) (GH-29152) 2021-11-18 17:19:19 +01:00
dynload_shlib.c
dynload_stub.c
dynload_win.c
errors.c [3.10] bpo-45848: Allow the parser to get error lines from encoded files (GH-29646) (GH-29661) 2021-11-20 16:34:56 +01:00
fileutils.c [3.10] Fix typos in the Python directory (GH-28767) (GH-28799) 2021-10-07 17:30:08 +02:00
formatter_unicode.c
frozen.c
frozen_hello.h
frozenmain.c
future.c
getargs.c
getcompiler.c
getcopyright.c [3.10] Update copyright year to 2022. (GH-30335) (GH-30336) 2022-01-02 13:13:04 -08:00
getopt.c
getplatform.c
getversion.c
hamt.c
hashtable.c
import.c [3.10] Fix typos in the Python directory (GH-28767) (GH-28799) 2021-10-07 17:30:08 +02:00
importdl.c Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863) 2021-10-12 10:10:59 -07:00
importdl.h
importlib.h [3.10] bpo-46724: Use JUMP_ABSOLUTE for all backward jumps. (GH-31326) (GH-31354) 2022-02-16 11:26:02 +00:00
importlib_external.h [3.10] bpo-46724: Use JUMP_ABSOLUTE for all backward jumps. (GH-31326) (GH-31354) 2022-02-16 11:26:02 +00:00
importlib_zipimport.h [3.10] bpo-46724: Use JUMP_ABSOLUTE for all backward jumps. (GH-31326) (GH-31354) 2022-02-16 11:26:02 +00:00
initconfig.c [3.10] Fix typos in the Python directory (GH-28767) (GH-28799) 2021-10-07 17:30:08 +02:00
makeopcodetargets.py
marshal.c
modsupport.c
mysnprintf.c
mystrtoul.c
opcode_targets.h
pathconfig.c [3.10] Fix typos in the Python directory (GH-28767) (GH-28799) 2021-10-07 17:30:08 +02:00
preconfig.c
pyarena.c
pyctype.c
pyfpe.c
pyhash.c
pylifecycle.c
pymath.c
pystate.c bpo-42540: reallocation of id_mutex should not force default allocator (GH-29564) 2021-11-17 13:16:01 -08:00
pystrcmp.c
pystrhex.c
pystrtod.c
Python-ast.c bpo-46289: Make conversion of FormattedValue not optional on ASDL (GH-30467) 2022-01-07 14:30:18 -08:00
pythonrun.c bpo-45614: Fix traceback display for exceptions with invalid module name (GH-29726) (GH-29826) 2021-11-29 10:07:24 +00:00
pytime.c
README
stdlib_module_names.h [3.10] bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358) (GH-29361) 2021-11-02 12:32:36 +01:00
structmember.c
suggestions.c [3.10] bpo-45826: Fix a crash in suggestions.c by checking for traceback is None (GH-29590) (GH-29602) 2021-11-18 01:28:04 +01:00
symtable.c bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059) (GH-30064) 2021-12-12 01:24:12 +00:00
sysmodule.c
thread.c
thread_nt.h
thread_pthread.h
traceback.c bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596) (GH-29598) 2021-11-17 22:59:19 +01:00
wordcode_helpers.h

Miscellaneous source files for the main Python shared library