summaryrefslogtreecommitdiff
path: root/Python/ceval.c
AgeCommit message (Collapse)AuthorLines
2018-12-19[2.7] bpo-35441: Remove dead and buggy code related to PyList_SetItem(). ↵Serhiy Storchaka-2/+2
(GH-11033) (GH-11234) 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>
2018-12-10ceval.c: mark debug 'filename' variable as unused (GH-11074)Victor Stinner-3/+7
Use GCC __attribute__((unused)) to mark the debug variable 'filename' as unused in Python/ceval.c.
2018-07-31[2.7] bpo-34234: Use _PyAnyInt_Check() and _PyAnyInt_CheckExact(). (GH-8479)Serhiy Storchaka-2/+1
2018-03-09Clear possible exception before calling PyTuple_Pack in IMPORT_NAME (GH-6033)Xiang Zhang-1/+8
2018-02-07bpo-32616: Disable computed gotos by default for clang < 5 (GH-5574)INADA Naoki-2/+10
2017-05-10bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1531) (#1480)Xiang Zhang-1/+1
2017-03-30bpo-29935: Fixed error messages in the index() method of tuple and list ↵Serhiy Storchaka-1/+21
(#887) (#907) (#910) when pass indices of wrong type. (cherry picked from commit d4edfc9abffca965e76ebc5957a92031a4d6c4d4) (cherry picked from commit bf4bb2e43030661e568d5d4b046e8b9351cc164c)
2017-03-08bpo-29655: Fixed possible reference leaks in `import *`. (#301) (#510)Serhiy Storchaka-0/+1
Original patch by Matthias Bussonnier. (cherry picked from commit 160edb43571311a3785785c1dfa784afc52d87be)
2017-03-01bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting ↵Xiang Zhang-2/+6
operations (GH-366)
2016-09-08Issue #26020: Fix evaluation order for set literalsRaymond Hettinger-2/+4
2016-01-31Issue #4806: Avoid masking TypeError when *-unpacking a generatorMartin Panter-2/+4
Based on patch by Hagen Fürstenau.
2016-04-10Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka-1/+1
in places where Py_DECREF was used.
2016-04-06Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka-1/+1
2015-12-24Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka-2/+1
macro Py_SETREF.
2015-08-19remove tabs from ceval.c (closes #24895)Benjamin Peterson-173/+173
2015-06-21Added the const qualifier for char* argument of Py_EnterRecursiveCall().Serhiy Storchaka-1/+1
2015-06-01sync opcode prediction code with python 3Benjamin Peterson-10/+4
2015-05-28backport computed gotos (#4753)Benjamin Peterson-229/+550
2014-12-12Issue #18028: Fix aliasing issue in READ_TIMESTAMP() of ceval.c on x86_64,Victor Stinner-3/+5
when Python is configure with --with-tsc. Patch written by Christian Heimes.
2014-11-21Issue #21963: backout issue #1856 patch (avoid crashes and lockups whenAntoine Pitrou-12/+0
daemon threads run while the interpreter is shutting down; instead, these threads are now killed when they try to take the GIL), as it seems to break some existing code.
2014-11-19Issue #22453: Fexed reference leaks when format error messages in ceval.c.Serhiy Storchaka-4/+16
Warn against the use of leaking macro PyObject_REPR().
2014-08-09restore runtime exec test (#21591)Benjamin Peterson-0/+9
2014-07-29Issue #21591: Handle exec backwards compatibility in the AST builder.Dirkjan Ochtman-9/+0
Instead of deferring until runtime. This makes sure we hit the right conditions in dealing with unqualified exec statements. Reviewed by Victor Stinner. Test follows in a later commit.
2014-06-16check if the thread is finalizing after retaking the GILBenjamin Peterson-0/+7
2014-06-16avoid crashes and lockups from daemon threads during interpreter shutdown ↵Benjamin Peterson-0/+6
(#1856)
2014-02-09Issue #20437: Fixed 43 potential bugs when deleting objects references.Serhiy Storchaka-2/+1
2011-07-15port 8d05f697acd4 (#11627)Benjamin Peterson-2/+10
2011-03-16#11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti-2/+2
2011-01-06Merged revisions 87796 via svnmerge fromDavid Malcolm-4/+5
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87796 | david.malcolm | 2011-01-06 12:01:36 -0500 (Thu, 06 Jan 2011) | 6 lines Issue #10655: Fix the build on PowerPC on Linux with GCC when building with timestamp profiling (--with-tsc): the preprocessor test for the PowerPC support now looks for "__powerpc__" as well as "__ppc__": the latter seems to only be present on OS X; the former is the correct one for Linux with GCC. ........
2010-09-25Rolled back revisions 85003 via svnmerge fromBenjamin Peterson-1/+1
svn+ssh://pythondev@svn.python.org/python/branches/py3k
2010-09-25Merged revisions 85003 via svnmerge fromBenjamin Peterson-1/+1
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85003 | benjamin.peterson | 2010-09-24 22:14:33 -0500 (Fri, 24 Sep 2010) | 1 line don't count keyword arguments as positional #9943 ........
2010-06-23Issue #8930: Remaining indentation fixes after the Grand Unified Indenting.Stefan Krah-57/+57
2010-05-09Untabify C files. Will watch buildbots.Antoine Pitrou-3745/+3745
2010-05-05Remove an unneeded variable increment.Brett Cannon-1/+0
Found using Clang's static analyzer.
2010-05-05Partially revert the over-reaching r80813.Brett Cannon-0/+1
2010-05-05Remove three unneeded variable assignments.Brett Cannon-1/+0
Found using Clang's static analyzer.
2010-04-01Issue #8276: PyEval_CallObject() is now only available in macro form. TheAntoine Pitrou-12/+1
function declaration, which was kept for backwards compatibility reasons, is now removed (the macro was introduced in 1997!).
2010-03-21take into account keyword arguments when passing too many argsBenjamin Peterson-1/+1
2010-03-21improve error message from passing inadequate number of keyword arguments #6474Benjamin Peterson-5/+7
Note this removes the "non-keyword" or "keyword" phrases from these messages.
2010-03-21co_varnames is certainly a tuple, so let's not waste time finding outBenjamin Peterson-1/+1
2010-03-21remove pointless conditionBenjamin Peterson-15/+13
2010-03-21flatten conditionBenjamin Peterson-8/+6
2010-03-07more specific exception for wrong kind of raise #8082Benjamin Peterson-2/+3
2010-02-06remove pointless error checkingBenjamin Peterson-3/+0
2010-02-05normalize exceptions passed to the __exit__ method #7853Benjamin Peterson-5/+9
In Python 2.x, exceptions in finally blocks are not normalized. Since with statements are implemented using finally blocks, ceval.c had to be tweaked to distinguish between with finally blocks and normal ones. A test for the finalization of generators containing with statements was also added.
2010-01-11Issue #2333: Backport set and dict comprehensions syntax.Alexandre Vassalotti-0/+26
2010-01-09Issue #2335: Backport set literals syntax from Python 3.x.Alexandre Vassalotti-0/+19
2009-12-02Issue #7406: Fix some occurrences of potential signed overflow in intMark Dickinson-2/+6
arithmetic.
2009-10-31Issue #6603: Fix --with-tsc build failures on x86-64 that resultedMark Dickinson-1/+19
from a gcc inline assembler peculiarity. (gcc's "A" constraint apparently means 'rax or rdx' in 64-bit mode, not edx:eax or rdx:rax as one might expect.)
2009-07-01small optimization: avoid popping the current block until we have toBenjamin Peterson-5/+5