Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #8930: Remaining indentation fixes after the Grand Unified Indenting. | Stefan Krah | 2010-06-23 | 1 | -57/+57 |
| | |||||
* | Untabify C files. Will watch buildbots. | Antoine Pitrou | 2010-05-09 | 1 | -3964/+3964 |
| | |||||
* | Remove an unneeded variable increment. | Brett Cannon | 2010-05-05 | 1 | -1/+0 |
| | | | | Found using Clang's static analyzer. | ||||
* | Partially revert the over-reaching r80813. | Brett Cannon | 2010-05-05 | 1 | -0/+1 |
| | |||||
* | Remove three unneeded variable assignments. | Brett Cannon | 2010-05-05 | 1 | -1/+0 |
| | | | | Found using Clang's static analyzer. | ||||
* | Issue #8276: PyEval_CallObject() is now only available in macro form. The | Antoine Pitrou | 2010-04-01 | 1 | -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 args | Benjamin Peterson | 2010-03-21 | 1 | -1/+1 |
| | |||||
* | improve error message from passing inadequate number of keyword arguments #6474 | Benjamin Peterson | 2010-03-21 | 1 | -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 out | Benjamin Peterson | 2010-03-21 | 1 | -1/+1 |
| | |||||
* | remove pointless condition | Benjamin Peterson | 2010-03-21 | 1 | -15/+13 |
| | |||||
* | flatten condition | Benjamin Peterson | 2010-03-21 | 1 | -8/+6 |
| | |||||
* | more specific exception for wrong kind of raise #8082 | Benjamin Peterson | 2010-03-07 | 1 | -2/+3 |
| | |||||
* | remove pointless error checking | Benjamin Peterson | 2010-02-06 | 1 | -3/+0 |
| | |||||
* | normalize exceptions passed to the __exit__ method #7853 | Benjamin Peterson | 2010-02-05 | 1 | -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 Vassalotti | 2010-01-11 | 1 | -0/+26 |
| | |||||
* | Issue #2335: Backport set literals syntax from Python 3.x. | Alexandre Vassalotti | 2010-01-09 | 1 | -0/+19 |
| | |||||
* | Issue #7406: Fix some occurrences of potential signed overflow in int | Mark Dickinson | 2009-12-02 | 1 | -2/+6 |
| | | | | arithmetic. | ||||
* | Issue #6603: Fix --with-tsc build failures on x86-64 that resulted | Mark Dickinson | 2009-10-31 | 1 | -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 to | Benjamin Peterson | 2009-07-01 | 1 | -5/+5 |
| | |||||
* | use stack macros | Benjamin Peterson | 2009-06-28 | 1 | -2/+2 |
| | |||||
* | add two generic macros for peeking and setting in the stack | Benjamin Peterson | 2009-06-28 | 1 | -0/+2 |
| | |||||
* | Issue #5330: C functions called with keyword arguments were not reported by | Antoine Pitrou | 2009-05-30 | 1 | -2/+16 |
| | | | | the various profiling modules (profile, cProfile). Patch by Hagen Fürstenau. | ||||
* | add a SETUP_WITH opcode | Benjamin Peterson | 2009-05-25 | 1 | -0/+46 |
| | | | | | It speeds up the with statement and correctly looks up the special methods involved. | ||||
* | Issue #6042: | Jeffrey Yasskin | 2009-05-23 | 1 | -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. | ||||
* | Issue 5954, PyFrame_GetLineNumber: | Jeffrey Yasskin | 2009-05-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | | Most uses of PyCode_Addr2Line (http://www.google.com/codesearch?q=PyCode_Addr2Line) are just trying to get the line number of a specified frame, but there's no way to do that directly. Forcing people to go through the code object makes them know more about the guts of the interpreter than they should need. The remaining uses of PyCode_Addr2Line seem to be getting the line from a traceback (for example, http://www.google.com/codesearch/p?hl=en#u_9_nDrchrw/pygame-1.7.1release/src/base.c&q=PyCode_Addr2Line), which is replaced by the tb_lineno field. So we may be able to deprecate PyCode_Addr2Line entirely for external use. | ||||
* | Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} with | Jeffrey Yasskin | 2009-02-28 | 1 | -17/+67 |
| | | | | | | POP_JUMP_IF_{TRUE,FALSE} and JUMP_IF_{TRUE,FALSE}_OR_POP. This avoids executing a POP_TOP on each conditional and sometimes allows the peephole optimizer to skip a JUMP_ABSOLUTE entirely. It speeds up list comprehensions significantly. | ||||
* | Issue 5176: special-case string formatting in BINARY_MODULO implementation. ↵ | Collin Winter | 2009-02-20 | 1 | -1/+4 |
| | | | | This shows a modest (1-3%) speed-up in templating systems, for example. | ||||
* | Silence 'arg may be used uninitialized in this function' warning from gcc. | Mark Dickinson | 2009-02-08 | 1 | -1/+1 |
| | |||||
* | fix building the core with --disable-unicode | Benjamin Peterson | 2009-01-25 | 1 | -4/+15 |
| | | | | | I changed some bytearray methods to use strings instead of unicode like bytes_repr Also, bytearray.fromhex() can take strings as well as unicode | ||||
* | allow unicode keyword arguments for the ** syntax #4978 | Benjamin Peterson | 2009-01-20 | 1 | -12/+33 |
| | |||||
* | Issue 4293: Make Py_AddPendingCall() thread safe | Kristján Valur Jónsson | 2009-01-09 | 1 | -22/+146 |
| | |||||
* | Issue #2183: Simplify and optimize bytecode for list comprehensions. | Antoine Pitrou | 2008-12-17 | 1 | -2/+1 |
| | |||||
* | #4559: When a context manager's __exit__() method returns an object whose | Amaury Forgeot d'Arc | 2008-12-10 | 1 | -6/+13 |
| | | | | | | | conversion to bool raises an exception, 'with' loses that exception. Reviewed by Jeffrey Yasskin. Already ported to 2.5, will port to 2.6 and 3.0 | ||||
* | Issue 4597: Fix several cases in EvalFrameEx where an exception could be | Jeffrey Yasskin | 2008-12-08 | 1 | -3/+14 |
| | | | | "raised" without setting x, err, or why to let the eval loop know. | ||||
* | Speed up Python (according to pybench and 2to3-on-itself) by 1-2% by caching | Jeffrey Yasskin | 2008-12-03 | 1 | -1/+10 |
| | | | | | whether any thread has tracing turned on, which saves one load instruction in the fast_next_opcode path in PyEval_EvalFrameEx(). See issue 4477. | ||||
* | Raymond's patch for #1819: speedup function calls with named parameters | Antoine Pitrou | 2008-07-25 | 1 | -22/+30 |
| | | | | (35% faster according to pybench) | ||||
* | Apply patch for 874900: threading module can deadlock after fork | Jesse Noller | 2008-07-16 | 1 | -0/+20 |
| | |||||
* | Update comment on prediction macros. | Raymond Hettinger | 2008-07-05 | 1 | -11/+13 |
| | |||||
* | Add a comment about incref'ing w. | Georg Brandl | 2008-07-01 | 1 | -0/+2 |
| | |||||
* | #3242: fix a crash in "print", if sys.stdout is set to a custom object, | Amaury Forgeot d'Arc | 2008-07-01 | 1 | -0/+2 |
| | | | | | | whose write() method installs another sys.stdout. Will backport. | ||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -47/+47 |
| | | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread. | ||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -47/+47 |
| | |||||
* | A little reformating of Py3k warnings | Benjamin Peterson | 2008-04-27 | 1 | -8/+8 |
| | |||||
* | Use PyErr_WarnPy3k throughout | Benjamin Peterson | 2008-04-27 | 1 | -2/+2 |
| | |||||
* | Make Py3k warnings consistent w.r.t. punctuation; also respect the | Georg Brandl | 2008-03-25 | 1 | -1/+1 |
| | | | | EOL 80 limit and supply more alternatives in warning messages. | ||||
* | Issue #2341: Add a Py3k warning when raising an exception that doesn't | Guido van Rossum | 2008-03-18 | 1 | -0/+9 |
| | | | | derive from BaseException. | ||||
* | Clean up the Py3k warnings for non-BaseException-subclasses a bit. We | Guido van Rossum | 2008-03-18 | 1 | -4/+6 |
| | | | | | now don't warn for some corner cases that deserve a warning, rather than warning double or incorrectly for some other corner cases. | ||||
* | - Issue #2371: Add a Py3k warning when catching an exception that | Guido van Rossum | 2008-03-18 | 1 | -0/+27 |
| | | | | doesn't derive from BaseException. | ||||
* | Speed up with statements by storing the __exit__ method on the stack instead ↵ | Nick Coghlan | 2008-03-07 | 1 | -24/+50 |
| | | | | of in a temp variable (bumps the magic number for pyc files) | ||||
* | compile.c always emits END_FINALLY after WITH_CLEANUP, so predict that in | Jeffrey Yasskin | 2008-03-03 | 1 | -0/+2 |
| | | | | ceval.c. This is worth about a .03-.04us speedup on a simple with block. |