328 Commits (d6cb5dd9e19210f5963ff8beadde7ca2fda71574)

Author SHA1 Message Date
Jeffrey Yasskin 3ea7b41b58 Moved Rational._binary_float_to_ratio() to float.as_integer_ratio() because 18 years ago
Christian Heimes 969fe57baa Merged revisions 60245-60277 via svnmerge from 18 years ago
Neal Norwitz 5f95a79b2b Add prototypes to get the mathmodule.c to compile on OSF1 5.1 (Tru64) 18 years ago
Christian Heimes d32ed6f511 Merged revisions 59933-59951 via svnmerge from 18 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 18 years ago
Jeffrey Yasskin 9871d8fe22 Continue rolling back pep-3141 changes that changed behavior from 2.5. This 18 years ago
Jeffrey Yasskin 2f3c16be73 Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just 18 years ago
Christian Heimes 90aa7646af #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. 18 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. 18 years ago
Christian Heimes 99170a5dbf Merged revisions 59541-59561 via svnmerge from 18 years ago
Christian Heimes 0a8143f646 Applied patch #1635: Float patch for inf and nan on Windows (and other platforms). 18 years ago
Christian Heimes b76922a7be Merged revisions 59450-59464 via svnmerge from 18 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. 18 years ago
Christian Heimes 284d927625 Backport of r59456:59458 from py3k to trunk 18 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'. 18 years ago
Christian Heimes 217cfd1c86 Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h 18 years ago
Christian Heimes 938526609f Merged revisions 59245-59254 via svnmerge from 18 years ago
Christian Heimes dfdfaab1c5 Feature #1534 18 years ago
Neil Schemenauer 16c7075164 Remove more cruft leftover from nb_coerce. Rename nb_coerce to 19 years ago
Brett Cannon 0153159e67 Add a bunch of GIL release/acquire points in tp_print implementations and for 19 years ago
Jeffrey Yasskin 3404b3ce2a Check in some documentation tweaks for PEP 3141, add some tests, and implement 19 years ago
Neal Norwitz 1fe5f38852 Remove checking redundantly for checks of PyInt and PyLong. 19 years ago
Guido van Rossum 6deb1bf83f Use pow() instead of repeated multiplication by 10 in round(x, n). 19 years ago
Neal Norwitz 6ea45d3341 Use unicode and remove support for some uses of str8. 19 years ago
Eric Smith 8c66326368 Implementation of PEP 3101, Advanced String Formatting. 19 years ago
Guido van Rossum 2fa33db12b Finish the work on __round__ and __trunc__. 19 years ago
Neal Norwitz 447e7c3981 Fix memory leak 19 years ago
Guido van Rossum 04dbf3b5ec Kill all uses and definitions of tp_print under Objects/. (Others will follow.) 19 years ago
Guido van Rossum b43daf7096 Changes to long and float by Jeffrey Jasskin to conform to PEP 3141. 19 years ago
Martin v. Löwis 9f2e346911 Merged revisions 56467-56482 via svnmerge from 19 years ago
Martin v. Löwis 6819210b9e PEP 3123: Provide forward compatibility with Python 3.0, while keeping 19 years ago
Walter Dörwald 7104458c36 Change float.__getformat__() to return a unicode string. 19 years ago
Walter Dörwald 7696ed7b92 Change float.__str__() and complex.__str__() to return 19 years ago
Walter Dörwald 1ab8330827 Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 19 years ago
Guido van Rossum 2be161dcfa Make tset_float pass. float(<unicode>) was never very good -- it used 19 years ago
Guido van Rossum 360e4b8fb1 Merged revisions 55325-55327 via svnmerge from 19 years ago
Guido van Rossum 8d30cc0144 Get rid of all #ifdef Py_USING_UNICODE (it is always present now). 19 years ago
Neal Norwitz 8b267b55ef Remove dead code. This code couldn't be reached because earlier in 19 years ago
Georg Brandl 428f0641ec Remove the deprecated and useless "pend" argument from 19 years ago
Guido van Rossum ddefaf31b3 Merged the int/long unification branch, by very crude means (sorry Thomas!). 19 years ago
Neal Norwitz 545686b279 Remove PyFloat_AsReprString() and PyFloat_AsString() which should not 19 years ago
Jack Diederich 4dafcc4ece - patch #1600346 submitted by Tomer Filiba 19 years ago
Alex Martelli 348dc88097 Reverting the patch that tried to fix the issue whereby x**2 raises 20 years ago
Alex Martelli 20362a820b x**2 should about equal x*x (including for a float x such that the result is 20 years ago
Neal Norwitz 4886cc331f Get rid of most of the rest of coerce (slot is still there for now). 20 years ago
Guido van Rossum 3cf5b1eef9 Get rid of most of the flags (in tp_flags) that keep track of various 20 years ago
Thomas Wouters 477c8d5e70 Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk. 20 years ago
Kristján Valur Jónsson f94323fbb4 Added a new macro, Py_IS_FINITE(X). On windows there is an intrinsic for this and it is more efficient than to use !Py_IS_INFINITE(X) && !Py_IS_NAN(X). No change on other platforms 20 years ago
Thomas Wouters 49fd7fa443 Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 20 years ago
Skip Montanaro 429433b30b C++ compiler cleanup: bunch-o-casts, plus use of unsigned loop index var in a couple places 20 years ago