summaryrefslogtreecommitdiff
path: root/Python
AgeCommit message (Collapse)AuthorLines
2010-06-11different spellings are just unacceptableBenjamin Peterson-1/+1
2010-06-09fix code formattingBenjamin Peterson-2/+3
2010-05-25Issue #3798: Write sys.exit() message to sys.stderr to use stderr encoding andVictor Stinner-1/+7
error handler, instead of writing to the C stderr file in utf-8
2010-05-21Issue #5753: A new C API function, :cfunc:`PySys_SetArgvEx`, allowsAntoine Pitrou-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>`_.
2010-05-20Turned out that if you used explicit relative import syntaxBrett Cannon-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.
2010-05-15Use 4-spaces for indentation (instead of tabs) in pgen outputsVictor Stinner-1287/+1287
Regenerate (reindent) Python/graminit.c
2010-05-09Untabify C files. Will watch buildbots.Antoine Pitrou-23780/+23780
2010-05-08Skip signal handler re-installation if it is not necessary. Issue 8354.Jean-Paul Calderone-0/+4
2010-05-05Revert a change where an expression is not needed now, but could be in the ↵Brett Cannon-0/+1
future.
2010-05-05Remove an unneeded variable assignment.Brett Cannon-1/+0
Found using Clang's static analyzer.
2010-05-05Explicitly add stdio.h and string.h to make strtod.c work standalone.Brett Cannon-6/+9
Found using Clang's static analyzer.
2010-05-05Change to a Py_XDECREF and fix some whitespace.Brett Cannon-8/+8
Found using Clang's static analyzer.
2010-05-05Remove an unnecessary variable assignment.Brett Cannon-1/+0
Found using Clang's static analyzer.
2010-05-05Remove two unneeded branches to an 'if' statement by applying De Morgan's LawBrett Cannon-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.
2010-05-05Remove an unneeded variable increment.Brett Cannon-1/+0
Found using Clang's static analyzer.
2010-05-05Remove an unneeded variable and fix a little whitespace.Brett Cannon-3/+2
Found using Clang's static analyzer.
2010-05-05Fix whitespace.Brett Cannon-8/+8
2010-05-05Partially revert the over-reaching r80813.Brett Cannon-78/+85
2010-05-05Remove three unneeded variable assignments.Brett Cannon-89/+79
Found using Clang's static analyzer.
2010-05-04Fix trailing whitespace.Mark Dickinson-1/+1
2010-05-04Issue #1533: fix inconsistency in range function argument processing:Mark Dickinson-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).
2010-04-25When DeprecationWarning was silenced by default, it also silenced any use of -QBrett Cannon-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.
2010-04-21Issue #7332: Remove the 16KB stack-based buffer inAntoine Pitrou-16/+4
PyMarshal_ReadLastObjectFromFile, which doesn't bring any noticeable benefit compared to the dynamic memory allocation fallback. Patch by Charles-François Natali.
2010-04-0614 years later, we still don't know what it's for.Antoine Pitrou-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).
2010-04-04fix tabsBenjamin Peterson-1/+1
2010-04-03give TypeError when trying to set T_STRING_INPLACEBenjamin Peterson-1/+5
2010-04-03more _PyString_Resize error checkingBenjamin Peterson-1/+2
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-25make naming convention consistentBenjamin Peterson-2/+2
2010-03-25Backported PyCapsule from 3.1, and converted most uses ofLarry Hastings-15/+35
CObject to PyCapsule.
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-17prevent lambda functions from having docstrings #8164Benjamin Peterson-0/+5
2010-03-13Fix incorrect error checks in structmember.c (backport of r78920 from py3k).Mark Dickinson-3/+4
2010-03-10Issue #3137: Don't ignore errors at startup, especially a keyboard interruptVictor Stinner-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.
2010-03-07more specific exception for wrong kind of raise #8082Benjamin Peterson-2/+3
2010-03-03Issue #7544: Preallocate thread memory before creating the thread to avoid aVictor Stinner-5/+23
fatal error in low memory condition.
2010-03-03Revert a nonexistent docstring typo, r42805.Florent Xicluna-1/+1
2010-03-01Issue #7242: On Solaris 9 and earlier calling os.fork() from within aGregory P. Smith-4/+8
thread could raise an incorrect RuntimeError about not holding the import lock. The import lock is now reinitialized after fork.
2010-02-23#4852: Remove dead code in every thread implementation, unused for many years.Amaury Forgeot d'Arc-548/+28
2010-02-06remove pointless error checkingBenjamin Peterson-3/+0
2010-02-05normalize exceptions passed to the __exit__ method #7853Benjamin Peterson-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.
2010-01-31Issue #7819: Check sys.call_tracing() arguments types.Victor Stinner-1/+1
py3k was already patched by issue #3661.
2010-01-27Issue #7766: Change sys.getwindowsversion() return value to a named tuple ↵Eric Smith-13/+62
and add the additional members returned in an OSVERSIONINFOEX structure. The new members are service_pack_major, service_pack_minor, suite_mask, and product_type.
2010-01-23dtoa.c fix from upstream that fixes incorrectly rounded results for certain ↵Mark Dickinson-2/+2
subnormals that are also halfway cases.
2010-01-23Issue #7743: Add checks for zero inputs to the lshift and mult functions;Mark Dickinson-0/+12
this fixes the first bug described in issue #7743.
2010-01-22Issue #7743: Fix a potential incorrect rounding bug in dtoa.c (2nd bugMark Dickinson-66/+107
in issue 7743).