Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | prevent assignment to set literals | Benjamin Peterson | 2010-06-24 | 1 | -0/+1 |
| | |||||
* | Issue #8930: Remaining indentation fixes after the Grand Unified Indenting. | Stefan Krah | 2010-06-23 | 1 | -57/+57 |
| | |||||
* | Fix misindents in compile.c (for Benjamin). | Antoine Pitrou | 2010-06-22 | 1 | -11/+11 |
| | | | | Of course, whoever used the wrong indentation rules needs to be spanked. | ||||
* | bump revision | Benjamin Peterson | 2010-06-22 | 1 | -2/+2 |
| | |||||
* | different spellings are just unacceptable | Benjamin Peterson | 2010-06-11 | 1 | -1/+1 |
| | |||||
* | fix code formatting | Benjamin Peterson | 2010-06-09 | 1 | -2/+3 |
| | |||||
* | Issue #3798: Write sys.exit() message to sys.stderr to use stderr encoding and | Victor Stinner | 2010-05-25 | 1 | -1/+7 |
| | | | | error handler, instead of writing to the C stderr file in utf-8 | ||||
* | Issue #5753: A new C API function, :cfunc:`PySys_SetArgvEx`, allows | Antoine Pitrou | 2010-05-21 | 1 | -2/+8 |
| | | | | | | embedders of the interpreter to set sys.argv without also modifying sys.path. This helps fix `CVE-2008-5983 <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983>`_. | ||||
* | Turned out that if you used explicit relative import syntax | Brett Cannon | 2010-05-20 | 1 | -1/+2 |
| | | | | | | | | | (e.g. from .os import sep) and it failed, import would still try the implicit relative import semantics of an absolute import (from os import sep). That's not right, so when level is negative, only do explicit relative import semantics. Fixes issue #7902. Thanks to Meador Inge for the patch. | ||||
* | Use 4-spaces for indentation (instead of tabs) in pgen outputs | Victor Stinner | 2010-05-15 | 1 | -1287/+1287 |
| | | | | Regenerate (reindent) Python/graminit.c | ||||
* | Untabify C files. Will watch buildbots. | Antoine Pitrou | 2010-05-09 | 54 | -25074/+25074 |
| | |||||
* | Skip signal handler re-installation if it is not necessary. Issue 8354. | Jean-Paul Calderone | 2010-05-08 | 1 | -0/+4 |
| | |||||
* | Revert a change where an expression is not needed now, but could be in the ↵ | Brett Cannon | 2010-05-05 | 1 | -0/+1 |
| | | | | future. | ||||
* | Remove an unneeded variable assignment. | Brett Cannon | 2010-05-05 | 1 | -1/+0 |
| | | | | Found using Clang's static analyzer. | ||||
* | Explicitly add stdio.h and string.h to make strtod.c work standalone. | Brett Cannon | 2010-05-05 | 1 | -6/+9 |
| | | | | Found using Clang's static analyzer. | ||||
* | Change to a Py_XDECREF and fix some whitespace. | Brett Cannon | 2010-05-05 | 1 | -8/+8 |
| | | | | Found using Clang's static analyzer. | ||||
* | Remove an unnecessary variable assignment. | Brett Cannon | 2010-05-05 | 1 | -1/+0 |
| | | | | Found using Clang's static analyzer. | ||||
* | Remove two unneeded branches to an 'if' statement by applying De Morgan's Law | Brett Cannon | 2010-05-05 | 1 | -73/+68 |
| | | | | | | | | | and creating a single 'if' statement along with a NULL default value for a variable. Also clean up a bunch of whitespace. Found using Clang's static analyzer. | ||||
* | Remove an unneeded variable increment. | Brett Cannon | 2010-05-05 | 1 | -1/+0 |
| | | | | Found using Clang's static analyzer. | ||||
* | Remove an unneeded variable and fix a little whitespace. | Brett Cannon | 2010-05-05 | 1 | -3/+2 |
| | | | | Found using Clang's static analyzer. | ||||
* | Fix whitespace. | Brett Cannon | 2010-05-05 | 1 | -8/+8 |
| | |||||
* | Partially revert the over-reaching r80813. | Brett Cannon | 2010-05-05 | 4 | -78/+85 |
| | |||||
* | Remove three unneeded variable assignments. | Brett Cannon | 2010-05-05 | 5 | -89/+79 |
| | | | | Found using Clang's static analyzer. | ||||
* | Fix trailing whitespace. | Mark Dickinson | 2010-05-04 | 1 | -1/+1 |
| | |||||
* | Issue #1533: fix inconsistency in range function argument processing: | Mark Dickinson | 2010-05-04 | 1 | -46/+73 |
| | | | | | | | | | any non-float non-integer argument is now converted to an integer (if possible) using its __int__ method. Previously, only small arguments were treated this way; larger arguments (those whose __int__ was outside the range of a C long) would produce a TypeError. Patch by Alexander Belopolsky (with minor modifications). | ||||
* | When DeprecationWarning was silenced by default, it also silenced any use of -Q | Brett Cannon | 2010-04-25 | 1 | -5/+7 |
| | | | | | | | by default as well. This change fixes that by treating -Q like -3 when it comes to DeprecationWarning; using it causes the silencing to not occur. Fixes issue #7319. | ||||
* | Issue #7332: Remove the 16KB stack-based buffer in | Antoine Pitrou | 2010-04-21 | 1 | -16/+4 |
| | | | | | | PyMarshal_ReadLastObjectFromFile, which doesn't bring any noticeable benefit compared to the dynamic memory allocation fallback. Patch by Charles-François Natali. | ||||
* | 14 years later, we still don't know what it's for. | Antoine Pitrou | 2010-04-06 | 1 | -10/+0 |
| | | | | | | | | | | | | | | | | | Spotted by the PyPy developers. Original commit is: branch: trunk user: guido date: Mon Aug 19 21:32:04 1996 +0200 files: Python/getargs.c description: [svn r6499] Support for keyword arguments (PyArg_ParseTupleAndKeywords) donated by Geoff Philbrick <philbric@delphi.hks.com> (slightly changed by me). Also a little change to make the file acceptable to K&R C compilers (HPUX, SunOS 4.x). | ||||
* | fix tabs | Benjamin Peterson | 2010-04-04 | 1 | -1/+1 |
| | |||||
* | give TypeError when trying to set T_STRING_INPLACE | Benjamin Peterson | 2010-04-03 | 1 | -1/+5 |
| | |||||
* | more _PyString_Resize error checking | Benjamin Peterson | 2010-04-03 | 1 | -1/+2 |
| | |||||
* | 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!). | ||||
* | make naming convention consistent | Benjamin Peterson | 2010-03-25 | 1 | -2/+2 |
| | |||||
* | Backported PyCapsule from 3.1, and converted most uses of | Larry Hastings | 2010-03-25 | 2 | -15/+35 |
| | | | | CObject to PyCapsule. | ||||
* | 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 |
| | |||||
* | prevent lambda functions from having docstrings #8164 | Benjamin Peterson | 2010-03-17 | 1 | -0/+5 |
| | |||||
* | Fix incorrect error checks in structmember.c (backport of r78920 from py3k). | Mark Dickinson | 2010-03-13 | 1 | -3/+4 |
| | |||||
* | Issue #3137: Don't ignore errors at startup, especially a keyboard interrupt | Victor Stinner | 2010-03-10 | 2 | -18/+16 |
| | | | | | | (SIGINT). If an error occurs while importing the site module, the error is printed and Python exits. Initialize the GIL before importing the site module. | ||||
* | more specific exception for wrong kind of raise #8082 | Benjamin Peterson | 2010-03-07 | 1 | -2/+3 |
| | |||||
* | Issue #7544: Preallocate thread memory before creating the thread to avoid a | Victor Stinner | 2010-03-03 | 1 | -5/+23 |
| | | | | fatal error in low memory condition. | ||||
* | Revert a nonexistent docstring typo, r42805. | Florent Xicluna | 2010-03-03 | 1 | -1/+1 |
| | |||||
* | Issue #7242: On Solaris 9 and earlier calling os.fork() from within a | Gregory P. Smith | 2010-03-01 | 1 | -4/+8 |
| | | | | | thread could raise an incorrect RuntimeError about not holding the import lock. The import lock is now reinitialized after fork. | ||||
* | #4852: Remove dead code in every thread implementation, unused for many years. | Amaury Forgeot d'Arc | 2010-02-23 | 12 | -548/+28 |
| | |||||
* | 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 | 2 | -5/+12 |
| | | | | | | | | | 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 #7819: Check sys.call_tracing() arguments types. | Victor Stinner | 2010-01-31 | 1 | -1/+1 |
| | | | | py3k was already patched by issue #3661. |