summaryrefslogtreecommitdiff
path: root/Python
AgeCommit message (Collapse)AuthorLines
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).
2010-01-22Correct typo in comment.Mark Dickinson-1/+1
2010-01-20Additional explanatory comments for _Py_dg_strtod.Mark Dickinson-0/+73
2010-01-20Don't try to put a value into a NULL pointer.Mark Dickinson-1/+2
2010-01-20Various dtoa.c cleanups. 1. Despagghetify _Py_dg_strtod parsing codeMark Dickinson-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.
2010-01-17Issue #7632: When Py_USING_MEMORY_DEBUGGER is defined, disable theMark Dickinson-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.
2010-01-17Issue #7632: Fix a memory leak in _Py_dg_strtod.Mark Dickinson-1/+7
2010-01-16Fix multiple uses of variable 'L' in _Py_dg_strtod, where one use requires ↵Mark Dickinson-5/+6
an unsigned long and the other a signed long. See also r77421.
2010-01-16Issue #7632: Fix one more case of incorrect rounding for str -> floatMark Dickinson-27/+52
conversion (see bug 5 in the issue tracker).
2010-01-16Issue #7632: Fix a serious wrong output bug for string -> float conversion.Mark Dickinson-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.
2010-01-15Remove C++/C99-style comments.Brett Cannon-2/+2
2010-01-14The silencing of DeprecationWarning was not taking -3 into consideration. SinceBrett Cannon-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.
2010-01-14Issue 7632: fix incorrect rounding for long input strings with values very ↵Mark Dickinson-0/+24
close to a power of 2. (See Bug 4 in the tracker discussion.)
2010-01-14Issue 7632: fix a dtoa.c bug (bug 6) causing incorrect rounding. Tests to ↵Mark Dickinson-9/+6
follow.
2010-01-14Fix off-by-one error introduced in r77483. I have a test for this, but it ↵Mark Dickinson-2/+2
currently fails due to a different dtoa.c bug; I'll add the test once that bug is fixed.
2010-01-13More dtoa.c cleanup; remove the need for bc.dplen, bc.dp0 and bc.dp1.Mark Dickinson-69/+43
2010-01-13Fix buggy comparison: LHS of comparison was being treated as unsigned.Mark Dickinson-1/+1
2010-01-13Simplify and annotate the bigcomp function, removing unused special cases.Mark Dickinson-50/+26
2010-01-13Clarify that sulp expects a nonnegative input, but that +0.0 is fine.Mark Dickinson-5/+7
2010-01-13Add comments explaining the role of the bigcomp function in dtoa.c.Mark Dickinson-1/+60
2010-01-12Issue #7632: Fix a bug in dtoa.c that could lead to incorrectly-rounded ↵Mark Dickinson-2/+22
results.
2010-01-12Issue #7632: Fix a problem with _Py_dg_strtod that could lead toMark Dickinson-11/+15
crashes in debug builds, for certain long numeric strings corresponding to subnormal values.
2010-01-11Update version information for AST changes in r77422.Alexandre Vassalotti-2/+2
2010-01-11Issue #2333: Backport set and dict comprehensions syntax.Alexandre Vassalotti-159/+652
2010-01-11Change a variable type to avoid signed overflow; replace repeated '19999' ↵Mark Dickinson-4/+10
constant by a define.
2010-01-10Remove unused BCinfo fields and an unused macro.Mark Dickinson-21/+8
2010-01-10DeprecationWarning is now silent by default.Brett Cannon-20/+23
This was originally suggested by Guido, discussed on the stdlib-sig mailing list, and given the OK by Guido directly to me. What this change essentially means is that Python has taken a policy of silencing warnings that are only of interest to developers by default. This should prevent users from seeing warnings which are triggered by an application being run against a new interpreter before the app developer has a chance to update their code. Closes issue #7319. Thanks to Antoine Pitrou, Ezio Melotti, and Brian Curtin for helping with the issue.
2010-01-10Update the version # of Python-ast.c based on the backport of set literals fromBrett Cannon-2/+2
r77400.
2010-01-09Issue #2335: Backport set literals syntax from Python 3.x.Alexandre Vassalotti-184/+345
2010-01-04Fix typo in comment.Mark Dickinson-1/+1
2010-01-01Issue #5080: turn the DeprecationWarning from float arguments passedMark Dickinson-2/+19
to integer PyArg_Parse* format codes into a TypeError. Add a DeprecationWarning for floats passed with the 'L' format code, which didn't previously have a warning.
2010-01-01update copyright yearBenjamin Peterson-1/+1
2009-12-30check if the attribute is set before deleting it with T_OBJECT_EX (fixes #7604)Benjamin Peterson-5/+15
Also, add a note to the docs about the better behavior of T_OBJECT_EX as compared to T_OBJECT.
2009-12-28#7033: add new API function PyErr_NewExceptionWithDoc, for easily giving new ↵Georg Brandl-0/+34
exceptions a docstring.
2009-12-21Issue #7518: Move substitute definitions of C99 math functions fromMark Dickinson-199/+0
pymath.c to Modules/_math.c.
2009-12-13account for PyObject_IsInstance's new ability to failBenjamin Peterson-87/+445
2009-12-03Issue #6985: number of range() items should be constrained to lieMark Dickinson-4/+4
in a Py_ssize_t, not an int.
2009-12-02Issue #7406: Fix some occurrences of potential signed overflow in intMark Dickinson-2/+6
arithmetic.
2009-11-28Issue #1678380: When distinguishing between -0.0 and 0.0 inMark Dickinson-26/+15
compiler_add_o, use copysign instead of examining the first and last bytes of the double. The latter method fails for little-endian ARM, OABI, where doubles are little-endian but with the words swapped.
2009-11-24round(0, "ermintrude") succeeded instead of producing a TypeError. Fix this.Mark Dickinson-4/+4