Staging
v0.5.1
https://github.com/python/cpython
Revision 25555e0fbed15f809a247c7e16ab9d0a0088f806 authored by Miss Islington (bot) on 08 December 2018, 14:39:37 UTC, committed by GitHub on 08 December 2018, 14:39:37 UTC

In _localemodule.c and selectmodule.c, remove dead code that would
cause double decrefs if run.

In addition, replace PyList_SetItem() with PyList_SET_ITEM() in cases
where a new list is populated and there is no possibility of an error.

In addition, check if the list changed size in the loop in array_array_fromlist().
(cherry picked from commit 99d56b53560b3867844472ae381fb3f858760621)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parent 12b9fb6
Raw File
Tip revision: 25555e0fbed15f809a247c7e16ab9d0a0088f806 authored by Miss Islington (bot) on 08 December 2018, 14:39:37 UTC
bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033)
Tip revision: 25555e0
.bzrignore
.purify
autom4te.cache
config.log
config.cache
config.status
config.status.lineno
db_home
Makefile
buildno
python
build
Makefile.pre
platform
pybuilddir.txt
pyconfig.h
libpython*.a
libpython*.so*
python.exe
python-gdb.py
reflog.txt
tags
TAGS
.gdb_history
Doc/tools/sphinx
Doc/tools/jinja
Doc/tools/jinja2
Doc/tools/pygments
Doc/tools/docutils
Misc/python.pc
Modules/Setup
Modules/Setup.config
Modules/Setup.local
Modules/config.c
Modules/ld_so_aix
Parser/pgen
Lib/test/data/*
Lib/lib2to3/Grammar*.pickle
Lib/lib2to3/PatternGrammar*.pickle
__pycache__
.coverage
coverage/*
htmlcov/*
back to top