258 Commits (4fdb68491e8b2d044c9173babf625bbb815c39d1)

Author SHA1 Message Date
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
Anthony Baxter 377be11ee1 More C++-compliance. Note especially listobject.c - to get C++ to accept the 20 years ago
Georg Brandl 347b30042b Remove unnecessary casts in type object initializers. 20 years ago
Neal Norwitz bcc0db82dc Get rid of remnants of integer division 20 years ago
Thomas Wouters 8b87a0b5fc Use %ld and casts to long for refcount printing, in absense of a universally 20 years ago
Martin v. Löwis 15e62742fa Revert backwards-incompatible const changes. 20 years ago
Martin v. Löwis 18e165558b Merge ssize_t branch. 20 years ago
Neal Norwitz b2da01b27c Fix icc warnings: remove unused variable 20 years ago
Jeremy Hylton af68c874a6 Add const to several API functions that take char *. 20 years ago
Michael W. Hudson b78a5fc004 Fix bug 20 years ago
Michael W. Hudson 3095ad0650 Apparently some compiler gives a warning on 21 years ago
Michael W. Hudson ba283e2b7f This is my patch: 21 years ago
Brett Cannon c3647ac93e Make subclasses of int, long, complex, float, and unicode perform type 21 years ago
Tim Peters e1c69b3f6f float_richcompare(): Use the new Py_IS_NAN macro to ensure that, on 22 years ago
Tim Peters 307fa78107 SF bug #513866: Float/long comparison anomaly. 22 years ago