summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Issue #7819: Check sys.call_tracing() arguments types.Victor Stinner2010-01-311-1/+1
| | | | py3k was already patched by issue #3661.
* Issue #7766: Change sys.getwindowsversion() return value to a named tuple ↵Eric Smith2010-01-271-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 Dickinson2010-01-231-2/+2
| | | | subnormals that are also halfway cases.
* Issue #7743: Add checks for zero inputs to the lshift and mult functions;Mark Dickinson2010-01-231-0/+12
| | | | this fixes the first bug described in issue #7743.
* Issue #7743: Fix a potential incorrect rounding bug in dtoa.c (2nd bugMark Dickinson2010-01-221-66/+107
| | | | in issue 7743).
* Correct typo in comment.Mark Dickinson2010-01-221-1/+1
|
* Additional explanatory comments for _Py_dg_strtod.Mark Dickinson2010-01-201-0/+73
|
* Don't try to put a value into a NULL pointer.Mark Dickinson2010-01-201-1/+2
|
* Various dtoa.c cleanups. 1. Despagghetify _Py_dg_strtod parsing codeMark Dickinson2010-01-201-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 theMark Dickinson2010-01-171-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 Dickinson2010-01-171-1/+7
|
* Fix multiple uses of variable 'L' in _Py_dg_strtod, where one use requires ↵Mark Dickinson2010-01-161-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 -> floatMark Dickinson2010-01-161-27/+52
| | | | conversion (see bug 5 in the issue tracker).
* Issue #7632: Fix a serious wrong output bug for string -> float conversion.Mark Dickinson2010-01-161-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 Cannon2010-01-151-2/+2
|
* The silencing of DeprecationWarning was not taking -3 into consideration. SinceBrett Cannon2010-01-141-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 Dickinson2010-01-141-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 Dickinson2010-01-141-9/+6
| | | | follow.
* Fix off-by-one error introduced in r77483. I have a test for this, but it ↵Mark Dickinson2010-01-141-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 Dickinson2010-01-131-69/+43
|
* Fix buggy comparison: LHS of comparison was being treated as unsigned.Mark Dickinson2010-01-131-1/+1
|
* Simplify and annotate the bigcomp function, removing unused special cases.Mark Dickinson2010-01-131-50/+26
|
* Clarify that sulp expects a nonnegative input, but that +0.0 is fine.Mark Dickinson2010-01-131-5/+7
|
* Add comments explaining the role of the bigcomp function in dtoa.c.Mark Dickinson2010-01-131-1/+60
|
* Issue #7632: Fix a bug in dtoa.c that could lead to incorrectly-rounded ↵Mark Dickinson2010-01-121-2/+22
| | | | results.
* Issue #7632: Fix a problem with _Py_dg_strtod that could lead toMark Dickinson2010-01-121-11/+15
| | | | | crashes in debug builds, for certain long numeric strings corresponding to subnormal values.
* Update version information for AST changes in r77422.Alexandre Vassalotti2010-01-111-2/+2
|
* Issue #2333: Backport set and dict comprehensions syntax.Alexandre Vassalotti2010-01-117-159/+652
|