summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 83352,83356-83358,83362,83366,83368-83369 via svnmerge fromGeorg Brandl2010-08-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83352 | georg.brandl | 2010-07-31 20:11:07 +0200 (Sa, 31 Jul 2010) | 1 line #9440: Remove borderline test case that fails based on unpredictable conditions such as compiler flags. ........ r83356 | georg.brandl | 2010-07-31 21:29:15 +0200 (Sa, 31 Jul 2010) | 1 line Remove trailing whitespace. ........ r83357 | georg.brandl | 2010-07-31 21:59:55 +0200 (Sa, 31 Jul 2010) | 1 line #5778: document that sys.version can contain a newline. ........ r83358 | georg.brandl | 2010-07-31 22:05:31 +0200 (Sa, 31 Jul 2010) | 1 line #9442: do not document a specific format for sys.version; rather refer to version_info and the platform module. ........ r83362 | georg.brandl | 2010-07-31 23:12:15 +0200 (Sa, 31 Jul 2010) | 1 line #8910: add a file explaining why Lib/test/data is there. ........ r83366 | georg.brandl | 2010-07-31 23:26:40 +0200 (Sa, 31 Jul 2010) | 1 line There always is a False and True now. ........ r83368 | georg.brandl | 2010-07-31 23:40:15 +0200 (Sa, 31 Jul 2010) | 1 line #7909: the prefixes \\.\ and \\?\ indicate special Windows paths, do not try to manipulate them. See http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx for details. ........ r83369 | georg.brandl | 2010-07-31 23:41:42 +0200 (Sa, 31 Jul 2010) | 1 line Fix "Berkeley" name. ........
* prevent assignment to set literalsBenjamin Peterson2010-06-241-0/+1
|
* Issue #8930: Remaining indentation fixes after the Grand Unified Indenting.Stefan Krah2010-06-231-57/+57
|
* Fix misindents in compile.c (for Benjamin).Antoine Pitrou2010-06-221-11/+11
| | | | Of course, whoever used the wrong indentation rules needs to be spanked.
* bump revisionBenjamin Peterson2010-06-221-2/+2
|
* different spellings are just unacceptableBenjamin Peterson2010-06-111-1/+1
|
* fix code formattingBenjamin Peterson2010-06-091-2/+3
|
* Issue #3798: Write sys.exit() message to sys.stderr to use stderr encoding andVictor Stinner2010-05-251-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`, allowsAntoine Pitrou2010-05-211-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 syntaxBrett Cannon2010-05-201-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 outputsVictor Stinner2010-05-151-1287/+1287
| | | | Regenerate (reindent) Python/graminit.c
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-0954-25074/+25074
|
* Skip signal handler re-installation if it is not necessary. Issue 8354.Jean-Paul Calderone2010-05-081-0/+4
|
* Revert a change where an expression is not needed now, but could be in the ↵Brett Cannon2010-05-051-0/+1
| | | | future.
* Remove an unneeded variable assignment.Brett Cannon2010-05-051-1/+0
| | | | Found using Clang's static analyzer.
* Explicitly add stdio.h and string.h to make strtod.c work standalone.Brett Cannon2010-05-051-6/+9
| | | | Found using Clang's static analyzer.
* Change to a Py_XDECREF and fix some whitespace.Brett Cannon2010-05-051-8/+8
| | | | Found using Clang's static analyzer.
* Remove an unnecessary variable assignment.Brett Cannon2010-05-051-1/+0
| | | | Found using Clang's static analyzer.
* Remove two unneeded branches to an 'if' statement by applying De Morgan's LawBrett Cannon2010-05-051-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 Cannon2010-05-051-1/+0
| | | | Found using Clang's static analyzer.
* Remove an unneeded variable and fix a little whitespace.Brett Cannon2010-05-051-3/+2
| | | | Found using Clang's static analyzer.
* Fix whitespace.Brett Cannon2010-05-051-8/+8
|
* Partially revert the over-reaching r80813.Brett Cannon2010-05-054-78/+85
|
* Remove three unneeded variable assignments.Brett Cannon2010-05-055-89/+79
| | | | Found using Clang's static analyzer.
* Fix trailing whitespace.Mark Dickinson2010-05-041-1/+1
|
* Issue #1533: fix inconsistency in range function argument processing:Mark Dickinson2010-05-041-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 -QBrett Cannon2010-04-251-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 inAntoine Pitrou2010-04-211-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 Pitrou2010-04-061-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 tabsBenjamin Peterson2010-04-041-1/+1
|
* give TypeError when trying to set T_STRING_INPLACEBenjamin Peterson2010-04-031-1/+5
|
* more _PyString_Resize error checkingBenjamin Peterson2010-04-031-1/+2
|
* 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!).
* make naming convention consistentBenjamin Peterson2010-03-251-2/+2
|
* Backported PyCapsule from 3.1, and converted most uses ofLarry Hastings2010-03-252-15/+35
| | | | CObject to PyCapsule.
* 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
|
* prevent lambda functions from having docstrings #8164Benjamin Peterson2010-03-171-0/+5
|
* Fix incorrect error checks in structmember.c (backport of r78920 from py3k).Mark Dickinson2010-03-131-3/+4
|
* Issue #3137: Don't ignore errors at startup, especially a keyboard interruptVictor Stinner2010-03-102-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 #8082Benjamin Peterson2010-03-071-2/+3
|
* Issue #7544: Preallocate thread memory before creating the thread to avoid aVictor Stinner2010-03-031-5/+23
| | | | fatal error in low memory condition.
* Revert a nonexistent docstring typo, r42805.Florent Xicluna2010-03-031-1/+1
|
* Issue #7242: On Solaris 9 and earlier calling os.fork() from within aGregory P. Smith2010-03-011-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'Arc2010-02-2312-548/+28
|
* remove pointless error checkingBenjamin Peterson2010-02-061-3/+0
|
* normalize exceptions passed to the __exit__ method #7853Benjamin Peterson2010-02-052-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.