| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [2.7] bpo-34234: Use _PyAnyInt_Check() and _PyAnyInt_CheckExact(). (GH-8479) | Serhiy Storchaka | 2018-07-31 | 1 | -1/+1 |
| | | |||||
| * | Fix typo and edit for clarity in the docstrings of sys.float_info. (GH-2251) | Miss Islington (bot) | 2018-03-26 | 1 | -3/+2 |
| | | | | | | (cherry picked from commit 0301c9bdd1ebd788d1334cf3fe06c48f35bab0dc) Co-authored-by: Stefano Taschini <taschini@users.noreply.github.com> | ||||
| * | consistently use Py_TYPE, Py_REFCNT, and correct initializer macros (#3563) | Benjamin Peterson | 2017-09-14 | 1 | -1/+1 |
| | | | | This no-op change makes 2.7 more consistent with 3.x to ease comparison and backports. | ||||
| * | Issue #22463: Backport compiler warning fixes and workarounds | Martin Panter | 2016-06-21 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | * Set but unused variable in Parser/pgen.c in non-debug builds. Patch by Christian Heimes. * Unused static function in Modules/readline.c. Patch by Georg Brandl. * main_window unused in Modules/tkappinit.c. Patch by Gregory P. Smith. * Dead assignment in Modules/_ctypes/cfield.c. Extracted from patch by Brett Cannon. * Expression result unused in PyObject_INIT macro expansions. Based on patches by Christian Heimes. * Load expat_config.h and therefore pyconfig.h before C stdlib headers are loaded. This silences pre-processor warnings including '_POSIX_C_SOURCE redefined'. Extracted from patch by Christian Heimes. | ||||
| * | Corrections for a/an in code comments and documentation | Martin Panter | 2016-05-08 | 1 | -1/+1 |
| | | |||||
| * | Issue #24731: Fixed crash on converting objects with special methods | Serhiy Storchaka | 2015-11-25 | 1 | -1/+1 |
| | | | | | | __str__, __trunc__, and __float__ returning instances of subclasses of str, long, and float to subclasses of str, long, and float correspondingly. | ||||
| * | Issue #25678: Copy buffer objects to null-terminated strings. | Serhiy Storchaka | 2015-11-20 | 1 | -1/+10 |
| | | | | | | | | | Avoid buffer overreads when int(), long(), float(), and compile() are passed buffer objects. Similar code is removed from the complex() constructor, where it was not reachable. Patch backported from issue #24802 by Eryk Sun. | ||||
| * | fix potential refleak in PyFloat_AsDouble (closes #23590) | Benjamin Peterson | 2015-03-06 | 1 | -0/+1 |
| | | |||||
| * | #19069: use imperative mood in float object docstrings. Patch by Marco Buttu. | Ezio Melotti | 2013-10-05 | 1 | -9/+9 |
| | | |||||
| * | Issue #9742: Sneaky fix for build failure on Solaris 9. | Mark Dickinson | 2012-11-17 | 1 | -0/+9 |
| | | |||||
| * | Issue #13889: Add missing _Py_SET_53BIT_PRECISION_* calls around uses of ↵ | Mark Dickinson | 2012-01-27 | 1 | -0/+5 |
| | | | | | dtoa.c functions in float round. | ||||
| * | Issue #11144: Fix corner cases where float-to-int conversion unnecessarily ↵ | Mark Dickinson | 2011-03-26 | 1 | -7/+10 |
| | | | | | returned a long. | ||||
| * | Merged revisions 87032 via svnmerge from | Mark Dickinson | 2010-12-04 | 1 | -4/+14 |
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87032 | mark.dickinson | 2010-12-04 12:25:30 +0000 (Sat, 04 Dec 2010) | 3 lines Issue #10596: Fix float.__mod__ to have the same behaviour as float.__divmod__ with respect to signed zeros. ........ | ||||
| * | add space | Benjamin Peterson | 2010-07-02 | 1 | -1/+1 |
| | | |||||
| * | Untabify C files. Will watch buildbots. | Antoine Pitrou | 2010-05-09 | 1 | -2079/+2079 |
| | | |||||
| * | Add back in a line that was unneeded which advanced a pointer, but commented | Brett Cannon | 2010-05-06 | 1 | -0/+1 |
| | | | | | | | out as it is currently unneeded. This effectively adds back in the line removed in r80809 as a comment. | ||||
| * | Remove an unneeded variable increment. | Brett Cannon | 2010-05-05 | 1 | -1/+0 |
| | | | | | Found using Clang's static analyzer. | ||||
| * | #7482: clarify error message in case of division by zero of float and ↵ | Ezio Melotti | 2010-02-22 | 1 | -2/+2 |
| | | | | | complex numbers. | ||||
| * | Issue #7534: Fix handling of nans, infinities, and negative zero in ** | Mark Dickinson | 2009-12-30 | 1 | -23/+74 |
| | | | | | operator, on IEEE 754 platforms. Thanks Marcos Donolo for original patch. | ||||
| * | Include ieeefp.h (when available) in pyport.h instead of individually in | Mark Dickinson | 2009-11-28 | 1 | -4/+0 |
| | | | | | | | Objects/floatobject.c and Objects/complexobject.c. This should silence compiler warnings about implicit declaration of the 'finite' function on Solaris. | ||||
| * | Issue #7117, continued: Change round implementation to use the ↵ | Mark Dickinson | 2009-11-18 | 1 | -0/+196 |
| | | | | | | | | | 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. | ||||
| * | Issue #7117: Use PyOS_string_to_double instead of PyOS_ascii_strtod in | Mark Dickinson | 2009-10-26 | 1 | -35/+24 |
| | | | | | | floatobject.c. Also, remove limitation on length of unicode inputs to float(). | ||||
| * | Start to remove _PyOS_double_to_string, as mentioned in issue 7117. | Eric Smith | 2009-10-26 | 1 | -22/+36 |
| | | |||||
| * | Removed unused function PyFloat_AsStringEx. It is unused in floatobject.c, ↵ | Eric Smith | 2009-10-24 | 1 | -11/+0 |
| | | | | | and it's not declared in any .h file. | ||||
| * | Removed usage of unsafe PyFloat_AsString. | Eric Smith | 2009-10-16 | 1 | -7/+13 |
| | | |||||
| * | add underscores | Benjamin Peterson | 2009-06-16 | 1 | -2/+2 |
| | | |||||
| * | Issue #5981: Fix some float.fromhex bugs related to inf and nan handling. | Mark Dickinson | 2009-05-11 | 1 | -16/+36 |
| | | |||||
| * | Issue #5920: Changed format.__float__ and complex.__float__ to use a ↵ | Eric Smith | 2009-05-05 | 1 | -5/+10 |
| | | | | | precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson. | ||||
| * | Eliminate some locale-dependent calls to isspace and tolower. | Mark Dickinson | 2009-05-03 | 1 | -6/+6 |
| | | |||||
| * | Remove format_float and use _PyOS_double_to_string instead. | Mark Dickinson | 2009-04-29 | 1 | -82/+13 |
| | | |||||
| * | Backport r71967 changes from py3k to trunk. | Mark Dickinson | 2009-04-26 | 1 | -60/+21 |
| | | | | | (Internal plumbing changes for float parsing.) | ||||
| * | Issue #5835, deprecate PyOS_ascii_formatd. | Eric Smith | 2009-04-25 | 1 | -3/+2 |
| | | | | | | | If anyone wants to clean up the documentation, feel free. It's my first documentation foray, and it's not that great. Will port to py3k with a different strategy. | ||||
| * | call __float__ on str subclasses #5759 | Benjamin Peterson | 2009-04-15 | 1 | -1/+3 |
| | | | | | tests by R. David Murray | ||||
| * | Use correct capitalization of NaN | Andrew M. Kuchling | 2008-10-04 | 1 | -2/+2 |
| | | |||||
| * | should use macro'ed symbols not direct | Andrew MacIntyre | 2008-09-22 | 1 | -3/+3 |
| | | | | | | Part of source_os2emx.patch in issue 3868 Reviewed by Amaury Forgeot d'Arc | ||||
| * | #3777: long(4.2) returned an int, and broke backward compatibility. | Amaury Forgeot d'Arc | 2008-09-09 | 1 | -1/+8 |
| | | | | | | | | the __long__ slot is allowed to return either int or long, but the behaviour of float objects should not change between 2.5 and 2.6. Reviewed by Benjamin Peterson | ||||
| * | issue 3633: Solaris allows fullwidth Unicode digits in isxdigit, so | Mark Dickinson | 2008-08-21 | 1 | -5/+4 |
| | | | | | | | | | rewrite float.fromhex to only allow ASCII hex digits on all platforms. (Tests for this are already present, but the test_float failures on Solaris hadn't been noticed before.) Reviewed by Antoine Pitrou. | ||||
| * | Issue #3008: add instance method float.hex and class method float.fromhex | Mark Dickinson | 2008-07-15 | 1 | -0/+407 |
| | | | | | to convert floats to and from hexadecimal strings respectively. | ||||
| * | - Issue #2862: Make int and float freelist management consistent with other | Gregory P. Smith | 2008-07-06 | 1 | -26/+17 |
| | | | | | | freelists. Changes their CompactFreeList apis into ClearFreeList apis and calls them via gc.collect(). | ||||
| * | Issue 3188: accept float('infinity') as well as float('inf'). This | Mark Dickinson | 2008-07-05 | 1 | -0/+3 |
| | | | | | | | makes the float constructor behave in the same way as specified by various other language standards, including C99, IEEE 754r, and the IBM Decimal standard. | ||||
| * | Revert 64424, 64438, and 64439. | Raymond Hettinger | 2008-06-24 | 1 | -65/+7 |
| | | |||||
| * | Fix build on FreeBSD gcc. | Hye-Shik Chang | 2008-06-21 | 1 | -6/+6 |
| | | |||||
| * | Issue 3008: hex/oct/bin can show floats exactly. | Raymond Hettinger | 2008-06-21 | 1 | -2/+60 |
| | | |||||
| * | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -11/+11 |
| | | | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread. | ||||
| * | Refactor and clean up str.format() code (and helpers) in advance of ↵ | Eric Smith | 2008-05-30 | 1 | -18/+11 |
| | | | | | optimizations. | ||||
| * | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -12/+12 |
| | | |||||
| * | Issue #2801: fix bug in float.is_integer where ValueError | Mark Dickinson | 2008-05-09 | 1 | -0/+1 |
| | | | | | | | could be incorrectly raised. This is a backport of the Py3k fix in r62939. (Should really have been fixed in the trunk first and svnmerged into py3k.) | ||||
| * | I finally got the time to update and merge Mark's and my trunk-math branch. ↵ | Christian Heimes | 2008-04-18 | 1 | -125/+81 |
| | | | | | | | The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math. The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :) | ||||
| * | Fix compiler warning about finite() missing on Solaris. | Neal Norwitz | 2008-03-28 | 1 | -0/+4 |
| | | |||||
| * | Pluralss only need one s, not 2 (intss -> ints) | Neal Norwitz | 2008-03-27 | 1 | -1/+1 |
| | | |||||
