summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Change a variable type to avoid signed overflow; replace repeated '19999' ↵Mark Dickinson2010-01-111-4/+10
| | | | constant by a define.
* Remove unused BCinfo fields and an unused macro.Mark Dickinson2010-01-101-21/+8
|
* DeprecationWarning is now silent by default.Brett Cannon2010-01-101-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.
* Update the version # of Python-ast.c based on the backport of set literals fromBrett Cannon2010-01-101-2/+2
| | | | r77400.
* Issue #2335: Backport set literals syntax from Python 3.x.Alexandre Vassalotti2010-01-097-184/+345
|
* Fix typo in comment.Mark Dickinson2010-01-041-1/+1
|
* Issue #5080: turn the DeprecationWarning from float arguments passedMark Dickinson2010-01-011-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.
* update copyright yearBenjamin Peterson2010-01-011-1/+1
|
* check if the attribute is set before deleting it with T_OBJECT_EX (fixes #7604)Benjamin Peterson2009-12-301-5/+15
| | | | | Also, add a note to the docs about the better behavior of T_OBJECT_EX as compared to T_OBJECT.
* #7033: add new API function PyErr_NewExceptionWithDoc, for easily giving new ↵Georg Brandl2009-12-281-0/+34
| | | | exceptions a docstring.
* Issue #7518: Move substitute definitions of C99 math functions fromMark Dickinson2009-12-211-199/+0
| | | | pymath.c to Modules/_math.c.
* account for PyObject_IsInstance's new ability to failBenjamin Peterson2009-12-132-87/+445
|
* Issue #6985: number of range() items should be constrained to lieMark Dickinson2009-12-031-4/+4
| | | | in a Py_ssize_t, not an int.
* Issue #7406: Fix some occurrences of potential signed overflow in intMark Dickinson2009-12-021-2/+6
| | | | arithmetic.
* Issue #1678380: When distinguishing between -0.0 and 0.0 inMark Dickinson2009-11-281-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.
* round(0, "ermintrude") succeeded instead of producing a TypeError. Fix this.Mark Dickinson2009-11-241-4/+4
|
* turn goto into do while loopBenjamin Peterson2009-11-201-36/+31
|
* genexps have linenosBenjamin Peterson2009-11-201-1/+1
|
* provide line number for lambdasBenjamin Peterson2009-11-201-2/+1
|
* improve several corner cases related with argument names in parenthesisBenjamin Peterson2009-11-191-1/+16
| | | | | | | | | - Fix #7362: give a good error message for parenthesized arguments with defaults. - Add a py3k warning for any parenthesized arguments since those are not allowed in Py3. This warning is not given in tuple unpacking, since that incurs the tuple unpacking warning.
* Issue #7117, continued: Change round implementation to use the ↵Mark Dickinson2009-11-181-19/+38
| | | | | | | | correctly-rounded string <-> float conversions; this makes sure that the result of the round operation is correctly rounded, and hence displays nicely using the new float repr.
* a better callable replacementBenjamin Peterson2009-11-171-1/+1
|
* Set retval on PyOS_string_to_double failure.Mark Dickinson2009-10-311-3/+9
|