Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | Issue #7766: Change sys.getwindowsversion() return value to a named tuple ↵ | Eric Smith | 2010-01-27 | 1 | -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. | ||||
* | dtoa.c fix from upstream that fixes incorrectly rounded results for certain ↵ | Mark Dickinson | 2010-01-23 | 1 | -2/+2 |
| | | | | subnormals that are also halfway cases. | ||||
* | Issue #7743: Add checks for zero inputs to the lshift and mult functions; | Mark Dickinson | 2010-01-23 | 1 | -0/+12 |
| | | | | this fixes the first bug described in issue #7743. | ||||
* | Issue #7743: Fix a potential incorrect rounding bug in dtoa.c (2nd bug | Mark Dickinson | 2010-01-22 | 1 | -66/+107 |
| | | | | in issue 7743). | ||||
* | Correct typo in comment. | Mark Dickinson | 2010-01-22 | 1 | -1/+1 |
| | |||||
* | Additional explanatory comments for _Py_dg_strtod. | Mark Dickinson | 2010-01-20 | 1 | -0/+73 |
| | |||||
* | Don't try to put a value into a NULL pointer. | Mark Dickinson | 2010-01-20 | 1 | -1/+2 |
| | |||||
* | Various dtoa.c cleanups. 1. Despagghetify _Py_dg_strtod parsing code | Mark Dickinson | 2010-01-20 | 1 | -185/+165 |
| | | | | | | and exit points. 2. Simplify bigcomp comparison loop. 3. Don't set ERANGE on _Py_dg_strtod underflow (it was set inconsistently anyway). 4. Remove unused dsign field from BCinfo struct. | ||||
* | Issue #7632: When Py_USING_MEMORY_DEBUGGER is defined, disable the | Mark Dickinson | 2010-01-17 | 1 | -0/+98 |
| | | | | | | | | private memory allocation scheme in dtoa.c, along with a piece of code that caches powers of 5 for future use. This makes it easier to detect dtoa.c memory leaks with Valgrind or similar tools. Patch by Stefan Krah. | ||||
* | Issue #7632: Fix a memory leak in _Py_dg_strtod. | Mark Dickinson | 2010-01-17 | 1 | -1/+7 |
| | |||||
* | Fix multiple uses of variable 'L' in _Py_dg_strtod, where one use requires ↵ | Mark Dickinson | 2010-01-16 | 1 | -5/+6 |
| | | | | an unsigned long and the other a signed long. See also r77421. | ||||
* | Issue #7632: Fix one more case of incorrect rounding for str -> float | Mark Dickinson | 2010-01-16 | 1 | -27/+52 |
| | | | | conversion (see bug 5 in the issue tracker). | ||||
* | Issue #7632: Fix a serious wrong output bug for string -> float conversion. | Mark Dickinson | 2010-01-16 | 1 | -15/+41 |
| | | | | | | Also remove some now unused variables, and add comments clarifying the possible outputs of the parsing section of _Py_dg_strtod. Thanks Eric Smith for reviewing. | ||||
* | Remove C++/C99-style comments. | Brett Cannon | 2010-01-15 | 1 | -2/+2 |
| | |||||
* | The silencing of DeprecationWarning was not taking -3 into consideration. Since | Brett Cannon | 2010-01-14 | 1 | -12/+18 |
| | | | | | | | | Py3K warnings are DeprecationWarning by default this was causing -3 to essentially be a no-op. Now DeprecationWarning is only silenced if -3 is not used. Closes issue #7700. Thanks Ezio Melotti and Florent Xicluna for patch help. | ||||
* | Issue 7632: fix incorrect rounding for long input strings with values very ↵ | Mark Dickinson | 2010-01-14 | 1 | -0/+24 |
| | | | | close to a power of 2. (See Bug 4 in the tracker discussion.) | ||||
* | Issue 7632: fix a dtoa.c bug (bug 6) causing incorrect rounding. Tests to ↵ | Mark Dickinson | 2010-01-14 | 1 | -9/+6 |
| | | | | follow. | ||||
* | Fix off-by-one error introduced in r77483. I have a test for this, but it ↵ | Mark Dickinson | 2010-01-14 | 1 | -2/+2 |
| | | | | currently fails due to a different dtoa.c bug; I'll add the test once that bug is fixed. | ||||
* | More dtoa.c cleanup; remove the need for bc.dplen, bc.dp0 and bc.dp1. | Mark Dickinson | 2010-01-13 | 1 | -69/+43 |
| | |||||
* | Fix buggy comparison: LHS of comparison was being treated as unsigned. | Mark Dickinson | 2010-01-13 | 1 | -1/+1 |
| | |||||
* | Simplify and annotate the bigcomp function, removing unused special cases. | Mark Dickinson | 2010-01-13 | 1 | -50/+26 |
| | |||||
* | Clarify that sulp expects a nonnegative input, but that +0.0 is fine. | Mark Dickinson | 2010-01-13 | 1 | -5/+7 |
| | |||||
* | Add comments explaining the role of the bigcomp function in dtoa.c. | Mark Dickinson | 2010-01-13 | 1 | -1/+60 |
| | |||||
* | Issue #7632: Fix a bug in dtoa.c that could lead to incorrectly-rounded ↵ | Mark Dickinson | 2010-01-12 | 1 | -2/+22 |
| | | | | results. | ||||
* | Issue #7632: Fix a problem with _Py_dg_strtod that could lead to | Mark Dickinson | 2010-01-12 | 1 | -11/+15 |
| | | | | | crashes in debug builds, for certain long numeric strings corresponding to subnormal values. | ||||
* | Update version information for AST changes in r77422. | Alexandre Vassalotti | 2010-01-11 | 1 | -2/+2 |
| | |||||
* | Issue #2333: Backport set and dict comprehensions syntax. | Alexandre Vassalotti | 2010-01-11 | 7 | -159/+652 |
| |