summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* 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. ........
* Merged revisions 87607 via svnmerge fromBenjamin Peterson2011-01-011-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87607 | benjamin.peterson | 2011-01-01 08:28:31 -0600 (Sat, 01 Jan 2011) | 1 line update copyright to 2011 ........
* Merged revisions 87251 via svnmerge fromR. David Murray2010-12-151-2/+3
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87251 | r.david.murray | 2010-12-14 18:06:25 -0500 (Tue, 14 Dec 2010) | 4 lines #4236: avoid possible Fatal Error when import is called from __del__ Patch by Simon Cross, crasher test code by Martin von Löwis. ........
* remove dictmaker rule; it's unusedBenjamin Peterson2010-12-111-215/+188
|
* Merged revisions 85904 via svnmerge fromBenjamin Peterson2010-10-291-0/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85904 | benjamin.peterson | 2010-10-28 22:28:14 -0500 (Thu, 28 Oct 2010) | 1 line decrement offset when it points to a newline (#10186 followup) ........
* Merged revisions 85814 via svnmerge fromBenjamin Peterson2010-10-241-2/+0
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85814 | benjamin.peterson | 2010-10-23 21:52:05 -0500 (Sat, 23 Oct 2010) | 1 line remove broken code accounting an offset the size of the line #10186 ........
* Merged revisions 85757 via svnmerge fromBenjamin Peterson2010-10-201-0/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85757 | benjamin.peterson | 2010-10-20 16:25:23 -0500 (Wed, 20 Oct 2010) | 1 line fix uninitialized struct member #10152 ........
* Merged revisions 85562 via svnmerge fromBenjamin Peterson2010-10-161-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85562 | benjamin.peterson | 2010-10-15 22:45:45 -0500 (Fri, 15 Oct 2010) | 1 line don't identify the toplevel namespace by name #9997 ........
* Merged revisions 85236 via svnmerge fromAmaury Forgeot d'Arc2010-10-051-0/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85236 | amaury.forgeotdarc | 2010-10-06 00:15:37 +0200 (mer., 06 oct. 2010) | 2 lines #9060 Let platforms without dup2() compile the replacement fonction without error. ........
* 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 ........
* Merged revisions 84623 via svnmerge fromAntoine Pitrou2010-09-081-8/+7
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84623 | antoine.pitrou | 2010-09-08 14:37:10 +0200 (mer., 08 sept. 2010) | 4 lines Issue #9797: pystate.c wrongly assumed that zero couldn't be a valid thread-local storage key. ........
* Merged revisions 84209, 84214 via svnmerge fromAmaury Forgeot d'Arc2010-08-191-26/+20
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84209 | amaury.forgeotdarc | 2010-08-19 19:43:15 +0200 (jeu., 19 août 2010) | 5 lines Check the return values for all functions returning an ast node. Failure to do it may result in strange error messages or even crashes, in admittedly convoluted cases that are normally syntax errors, like: def f(*xx, __debug__): pass ........ r84214 | amaury.forgeotdarc | 2010-08-19 23:32:38 +0200 (jeu., 19 août 2010) | 3 lines Add tests for r84209 (crashes in the Ast builder) Also remove one tab, and move a check closer to the possible failure. ........
* sys.stderr and sys.excepthook can be None at interpreter shutdown,Antoine Pitrou2010-08-081-2/+2
| | | | | in which case display the appropriate error message. (part of #5319)
* 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
|