312 Commits (e1becf46b4e3ba6d7d32ebf4bbd3e0804766a423)

Author SHA1 Message Date
Raymond Hettinger 9c437af4eb Revert 64424, 64438, and 64439. 18 years ago
Raymond Hettinger 5c960b8c64 Revert 64451. 18 years ago
Raymond Hettinger d11a44312f Merge 64438: hex/oct/bin can show floats exactly. 18 years ago
Hye-Shik Chang 30fa13f3a0 Fix build on FreeBSD gcc. 18 years ago
Raymond Hettinger e0e711446b Issue 3008: hex/oct/bin can show floats exactly. 18 years ago
Benjamin Peterson 4f92ca4022 Remove nb_reserved (nb_coerce), nb_hex, and nb_oct from PyNumberMethods 18 years ago
Gregory P. Smith dd96db63f6 This reverts r63675 based on the discussion in this thread: 18 years ago
Eric Smith 4a7d76ddb5 Refactor and clean up str.format() code (and helpers) in advance of optimizations. 18 years ago
Eric Smith dc13b79a38 Refactor and clean up str.format() code (and helpers) in advance of optimizations. 18 years ago
Christian Heimes 593daf545b Renamed PyString to PyBytes 18 years ago
Mark Dickinson e81c376080 Issue #2801: fix bug in float.is_integer where ValueError 18 years ago
Mark Dickinson c4352b061a Issue 2801: fix bug in float.is_integer where ValueError was incorrectly 18 years ago
Christian Heimes 53876d9cd8 Merged revisions 62380,62382-62383 via svnmerge from 18 years ago
Christian Heimes 6f34109384 I finally got the time to update and merge Mark's and my trunk-math branch. 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. 18 years ago
Christian Heimes bbe741dd1b Merged revisions 61981,61984-61987,61992-61993,61997-62000 via svnmerge from 18 years ago
Neal Norwitz 9fdfaaf9af Fix compiler warning about finite() missing on Solaris. 18 years ago
Christian Heimes ba4af493a5 Merged revisions 61964-61979 via svnmerge from 18 years ago
Neal Norwitz c0a56ff908 Pluralss only need one s, not 2 (intss -> ints) 18 years ago
Christian Heimes dd15f6c315 Merged revisions 61239-61249,61252-61257,61260-61264,61269-61275,61278-61279,61285-61286,61288-61290,61298,61303-61305,61312-61314,61317,61329,61332,61344,61350-61351,61363-61376,61378-61379,61382-61383,61387-61388,61392,61395-61396,61402-61403 via svnmerge from 18 years ago
Mark Dickinson c23b8a7af9 Issue 705836: Fix struct.pack(">f", 1e40) to behave consistently 18 years ago
Eric Smith a9f7d62480 Backport of PEP 3101, Advanced String Formatting, from py3k. 19 years ago
Christian Heimes 15ebc88d87 Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552-60567 via svnmerge from 19 years ago
Christian Heimes 422051a367 Patch #1953 19 years ago
Christian Heimes 292d351fc1 Merged revisions 60481,60485,60489-60520,60523-60527,60530-60533,60535-60538,60540-60551 via svnmerge from 19 years ago
Raymond Hettinger 2d1aa3350a Simpler solution to handling non-IEEE 754 environments. 19 years ago
Raymond Hettinger f9859037fc Add protection from weirdness while scaling the mantissa to an integer. 19 years ago
Raymond Hettinger 1bcb99a9cb Fix int/long typecase. Add check for non-binary floating point. 19 years ago
Raymond Hettinger ffc667cbd5 labs() takes a long for an input. 19 years ago
Raymond Hettinger c9e928ae0f Integer ratio should return ints instead of longs whereever possible. 19 years ago
Raymond Hettinger 04c96d52a4 Issue #1996: float.as_integer_ratio() should return fraction in lowest terms. 19 years ago
Christian Heimes 7b3ce6a17e Merged revisions 60441-60474 via svnmerge from 19 years ago
Christian Heimes 796fc31585 The previous change was causing a segfault after multiple calls to Py_Initialize() and Py_Finalize(). 19 years ago
Christian Heimes 0d9244332b Fixed some references leaks in sys. 19 years ago
Christian Heimes 2685563583 Merged revisions 60364-60378 via svnmerge from 19 years ago
Jeffrey Yasskin 3ea7b41b58 Moved Rational._binary_float_to_ratio() to float.as_integer_ratio() because 19 years ago
Christian Heimes 969fe57baa Merged revisions 60245-60277 via svnmerge from 19 years ago
Neal Norwitz 5f95a79b2b Add prototypes to get the mathmodule.c to compile on OSF1 5.1 (Tru64) 19 years ago
Christian Heimes d32ed6f511 Merged revisions 59933-59951 via svnmerge from 19 years ago
Christian Heimes c94e2b5c12 Now that I've learnt about structseq objects I felt like converting sys.float_info to a structseq. It's 19 years ago
Jeffrey Yasskin 9871d8fe22 Continue rolling back pep-3141 changes that changed behavior from 2.5. This 19 years ago
Jeffrey Yasskin 2f3c16be73 Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just 19 years ago
Christian Heimes 90aa7646af #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. 19 years ago
Christian Heimes e93237dfcc #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 19 years ago
Christian Heimes 99170a5dbf Merged revisions 59541-59561 via svnmerge from 19 years ago
Christian Heimes 0a8143f646 Applied patch #1635: Float patch for inf and nan on Windows (and other platforms). 19 years ago
Christian Heimes b76922a7be Merged revisions 59450-59464 via svnmerge from 19 years ago
Christian Heimes f15c66e143 The new float repr causes too much trouble and pain. I'm disabling the feature until we have sorted out the issues on all machines. 64bit machines seem to have issues and Guido has reported even worse. 19 years ago
Christian Heimes 284d927625 Backport of r59456:59458 from py3k to trunk 19 years ago
Christian Heimes 827b35c9fe Issue #1580: New free format floating point representation based on "Floating-Point Printer Sample Code", by Robert G. Burger. For example repr(11./5) now returns '2.2' instead of '2.2000000000000002'. 19 years ago
Christian Heimes 217cfd1c86 Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h 19 years ago