summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1531) (#1480)Xiang Zhang2017-05-101-1/+1
|
* bpo-29935: Fixed error messages in the index() method of tuple and list ↵Serhiy Storchaka2017-03-301-1/+21
| | | | | | | (#887) (#907) (#910) when pass indices of wrong type. (cherry picked from commit d4edfc9abffca965e76ebc5957a92031a4d6c4d4) (cherry picked from commit bf4bb2e43030661e568d5d4b046e8b9351cc164c)
* bpo-29655: Fixed possible reference leaks in `import *`. (#301) (#510)Serhiy Storchaka2017-03-081-0/+1
| | | | Original patch by Matthias Bussonnier. (cherry picked from commit 160edb43571311a3785785c1dfa784afc52d87be)
* bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting ↵Xiang Zhang2017-03-011-2/+6
| | | | operations (GH-366)
* Issue #26020: Fix evaluation order for set literalsRaymond Hettinger2016-09-081-2/+4
|
* Issue #4806: Avoid masking TypeError when *-unpacking a generatorMartin Panter2016-01-311-2/+4
| | | | Based on patch by Hagen Fürstenau.
* Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-101-1/+1
| | | | in places where Py_DECREF was used.
* Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-1/+1
|
* Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-241-2/+1
| | | | macro Py_SETREF.
* remove tabs from ceval.c (closes #24895)Benjamin Peterson2015-08-201-173/+173
|
* Added the const qualifier for char* argument of Py_EnterRecursiveCall().Serhiy Storchaka2015-06-211-1/+1
|
* sync opcode prediction code with python 3Benjamin Peterson2015-06-011-10/+4
|
* backport computed gotos (#4753)Benjamin Peterson2015-05-281-230/+551
|
* Issue #18028: Fix aliasing issue in READ_TIMESTAMP() of ceval.c on x86_64,Victor Stinner2014-12-121-3/+5
| | | | when Python is configure with --with-tsc. Patch written by Christian Heimes.
* Issue #21963: backout issue #1856 patch (avoid crashes and lockups whenAntoine Pitrou2014-11-211-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.
* Issue #22453: Fexed reference leaks when format error messages in ceval.c.Serhiy Storchaka2014-11-181-4/+16
| | | | Warn against the use of leaking macro PyObject_REPR().
* restore runtime exec test (#21591)Benjamin Peterson2014-08-101-0/+9
|
* Issue #21591: Handle exec backwards compatibility in the AST builder.Dirkjan Ochtman2014-07-291-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.
* check if the thread is finalizing after retaking the GILBenjamin Peterson2014-06-171-0/+7
|
* avoid crashes and lockups from daemon threads during interpreter shutdown ↵Benjamin Peterson2014-06-171-0/+6
| | | | (#1856)
* Issue #20437: Fixed 43 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-2/+1
|
* port 8d05f697acd4 (#11627)Benjamin Peterson2011-07-151-2/+10
|
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-2/+2
|
* Merged revisions 87796 via svnmerge fromDavid Malcolm2011-01-061-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. ........
* Rolled back revisions 85003 via svnmerge fromBenjamin Peterson2010-09-251-1/+1
| | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k
* Merged revisions 85003 via svnmerge fromBenjamin Peterson2010-09-251-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 ........
* Issue #8930: Remaining indentation fixes after the Grand Unified Indenting.Stefan Krah2010-06-231-57/+57
|
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-3964/+3964
|
* Remove an unneeded variable increment.Brett Cannon2010-05-051-1/+0
| | | | Found using Clang's static analyzer.
* Partially revert the over-reaching r80813.Brett Cannon2010-05-051-0/+1
|
* Remove three unneeded variable assignments.Brett Cannon2010-05-051-1/+0
| | | | Found using Clang's static analyzer.
* Issue #8276: PyEval_CallObject() is now only available in macro form. TheAntoine Pitrou2010-04-011-12/+1
| | | | | function declaration, which was kept for backwards compatibility reasons, is now removed (the macro was introduced in 1997!).
* take into account keyword arguments when passing too many argsBenjamin Peterson2010-03-211-1/+1
|
* improve error message from passing inadequate number of keyword arguments #6474Benjamin Peterson2010-03-211-5/+7
| | | | Note this removes the "non-keyword" or "keyword" phrases from these messages.
* co_varnames is certainly a tuple, so let's not waste time finding outBenjamin Peterson2010-03-211-1/+1
|
* remove pointless conditionBenjamin Peterson2010-03-211-15/+13
|
* flatten conditionBenjamin Peterson2010-03-211-8/+6
|
* more specific exception for wrong kind of raise #8082Benjamin Peterson2010-03-071-2/+3
|
* remove pointless error checkingBenjamin Peterson2010-02-061-3/+0
|
* normalize exceptions passed to the __exit__ method #7853Benjamin Peterson2010-02-051-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.
* Issue #2333: Backport set and dict comprehensions syntax.Alexandre Vassalotti2010-01-111-0/+26
|
* Issue #2335: Backport set literals syntax from Python 3.x.Alexandre Vassalotti2010-01-091-0/+19
|
* Issue #7406: Fix some occurrences of potential signed overflow in intMark Dickinson2009-12-021-2/+6
| | | | arithmetic.
* Issue #6603: Fix --with-tsc build failures on x86-64 that resultedMark Dickinson2009-10-311-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.)
* small optimization: avoid popping the current block until we have toBenjamin Peterson2009-07-011-5/+5
|
* use stack macrosBenjamin Peterson2009-06-281-2/+2
|
* add two generic macros for peeking and setting in the stackBenjamin Peterson2009-06-281-0/+2
|
* Issue #5330: C functions called with keyword arguments were not reported byAntoine Pitrou2009-05-301-2/+16
| | | | the various profiling modules (profile, cProfile). Patch by Hagen Fürstenau.
* add a SETUP_WITH opcodeBenjamin Peterson2009-05-251-0/+46
| | | | | It speeds up the with statement and correctly looks up the special methods involved.
* Issue #6042:Jeffrey Yasskin2009-05-231-14/+11
| | | | | | | | | | | | | | | lnotab-based tracing is very complicated and isn't documented very well. There were at least 3 comment blocks purporting to document co_lnotab, and none did a very good job. This patch unifies them into Objects/lnotab_notes.txt which tries to completely capture the current state of affairs. I also discovered that we've attached 2 layers of patches to the basic tracing scheme. The first layer avoids jumping to instructions that don't start a line, to avoid problems in if statements and while loops. The second layer discovered that jumps backward do need to trace at instructions that don't start a line, so it added extra lnotab entries for 'while' and 'for' loops, and added a special case for backward jumps within the same line. I replaced these patches by just treating forward and backward jumps differently.