Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Change a variable type to avoid signed overflow; replace repeated '19999' ↵ | Mark Dickinson | 2010-01-11 | 1 | -4/+10 |
| | | | | constant by a define. | ||||
* | Remove unused BCinfo fields and an unused macro. | Mark Dickinson | 2010-01-10 | 1 | -21/+8 |
| | |||||
* | DeprecationWarning is now silent by default. | Brett Cannon | 2010-01-10 | 1 | -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 from | Brett Cannon | 2010-01-10 | 1 | -2/+2 |
| | | | | r77400. | ||||
* | Issue #2335: Backport set literals syntax from Python 3.x. | Alexandre Vassalotti | 2010-01-09 | 7 | -184/+345 |
| | |||||
* | Fix typo in comment. | Mark Dickinson | 2010-01-04 | 1 | -1/+1 |
| | |||||
* | Issue #5080: turn the DeprecationWarning from float arguments passed | Mark Dickinson | 2010-01-01 | 1 | -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 year | Benjamin Peterson | 2010-01-01 | 1 | -1/+1 |
| | |||||
* | check if the attribute is set before deleting it with T_OBJECT_EX (fixes #7604) | Benjamin Peterson | 2009-12-30 | 1 | -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 Brandl | 2009-12-28 | 1 | -0/+34 |
| | | | | exceptions a docstring. | ||||
* | Issue #7518: Move substitute definitions of C99 math functions from | Mark Dickinson | 2009-12-21 | 1 | -199/+0 |
| | | | | pymath.c to Modules/_math.c. | ||||
* | account for PyObject_IsInstance's new ability to fail | Benjamin Peterson | 2009-12-13 | 2 | -87/+445 |
| | |||||
* | Issue #6985: number of range() items should be constrained to lie | Mark Dickinson | 2009-12-03 | 1 | -4/+4 |
| | | | | in a Py_ssize_t, not an int. | ||||
* | Issue #7406: Fix some occurrences of potential signed overflow in int | Mark Dickinson | 2009-12-02 | 1 | -2/+6 |
| | | | | arithmetic. | ||||
* | Issue #1678380: When distinguishing between -0.0 and 0.0 in | Mark Dickinson | 2009-11-28 | 1 | -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 Dickinson | 2009-11-24 | 1 | -4/+4 |
| | |||||
* | turn goto into do while loop | Benjamin Peterson | 2009-11-20 | 1 | -36/+31 |
| | |||||
* | genexps have linenos | Benjamin Peterson | 2009-11-20 | 1 | -1/+1 |
| | |||||
* | provide line number for lambdas | Benjamin Peterson | 2009-11-20 | 1 | -2/+1 |
| | |||||
* | improve several corner cases related with argument names in parenthesis | Benjamin Peterson | 2009-11-19 | 1 | -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 Dickinson | 2009-11-18 | 1 | -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 replacement | Benjamin Peterson | 2009-11-17 | 1 | -1/+1 |
| | |||||
* | Set retval on PyOS_string_to_double failure. | Mark Dickinson | 2009-10-31 | 1 | -3/+9 |
| | |||||
* | Issue #6603: Fix --with-tsc build failures on x86-64 that resulted | Mark Dickinson | 2009-10-31 | 1 | -1/+19 |
| | | | | | | from a gcc inline assembler peculiarity. (gcc's "A" constraint apparently means 'rax or rdx' in 64-bit mode, not edx:eax or rdx:rax as one might expect.) | ||||
* | Deprecate PyOS_ascii_strtod and PyOS_ascii_atof, and document the ↵ | Mark Dickinson | 2009-10-31 | 1 | -2/+12 |
| | | | | replacement function PyOS_string_to_double. | ||||
* | do a backport of r75928 | Benjamin Peterson | 2009-10-29 | 1 | -9/+12 |
| | | | | | The added test does not fail without the patch, but we still fix the issue of surrogates being used in wide builds where they should not be. | ||||
* | Removed PyOS_ascii_atof from marshal.c, as mentioned in issue 7117. Also ↵ | Eric Smith | 2009-10-27 | 1 | -11/+9 |
| | | | | brings it more in line with py3k. | ||||
* | Removed PyOS_ascii_atof from ast.c, as mentioned in issue 7117. | Eric Smith | 2009-10-27 | 1 | -6/+6 |
| | |||||
* | Finished removing _PyOS_double_to_string, as mentioned in issue 7117. | Eric Smith | 2009-10-26 | 1 | -135/+0 |
| | |||||
* | Issue #7117 (backport py3k float repr) continued: | Mark Dickinson | 2009-10-26 | 1 | -93/+699 |
| | | | | Backport pystrtod.c from py3k. | ||||
* | Warn against replacing PyNumber_Add with PyNumber_InPlaceAdd in sum | Mark Dickinson | 2009-10-26 | 1 | -0/+9 |
| | |||||
* | Issue #7117 (backport py3k float repr) continued: | Mark Dickinson | 2009-10-24 | 1 | -0/+10 |
| | | | | | Add sys.float_repr_style attribute ('short' if short float repr is in used; 'legacy' otherwise). | ||||
* | Remove temporary define from r75653 | Mark Dickinson | 2009-10-24 | 1 | -2/+0 |
| | |||||
* | Issue #7117 (backport py3k float repr) continued: | Mark Dickinson | 2009-10-24 | 1 | -0/+18 |
| | | | | | | | | | - add double endianness detection to configure script - add configure-time check to see whether we can use inline assembly to get and set x87 control word in configure script - add functions to get and set x87 control word in Python/pymath.c - add pyport.h logic to determine whether it's safe to use the short float repr or not | ||||
* | Temporary define to avoid build failure | Mark Dickinson | 2009-10-24 | 1 | -0/+2 |
| | |||||
* | Issue #7117: Prepare for backport of py3k float repr. | Mark Dickinson | 2009-10-24 | 1 | -0/+2609 |
| | | | | | | | Add the Python/dtoa.c file containing the main algorithms; add corresponding include file and include in Python.h; include license information for Python/dtoa.c; add dtoa.c and dtoa.h to Makefile. |