377 Commits (c19bb3279cbb42c84a24255db48ee2d385bb8167)

Author SHA1 Message Date
Mark Dickinson 17e5587693 Merged revisions 68890 via svnmerge from 18 years ago
Mark Dickinson 76eb789ce0 Merged revisions 68890 via svnmerge from 18 years ago
Mark Dickinson ff84aa87b4 Issue #4393: fix 3 classes of potential portability problems in longobject.c: 18 years ago
Mark Dickinson d4624c3331 Some minor cleanups in PyLong_FromLong: 18 years ago
Mark Dickinson 9ffc0205a6 Issue 4842, patch 2/2: int('3L') should be invalid in Python 3.x. 18 years ago
Mark Dickinson 8055afd019 Issue #4910, patch 3/3: rename nb_long to nb_reserved 18 years ago
Mark Dickinson cce2f217d4 Issue 4910, patch 2 of (probably) 3: pave the way for renaming of 18 years ago
Raymond Hettinger 3563153793 Reduce the size of the _PyLong_DigitValue table. 18 years ago
Antoine Pitrou 51f3ef9da0 Issue #3106: Speedup some comparisons. This also removes the last call 18 years ago
Mark Dickinson 54bc1ec4c7 Forward merge of r67822 to py3k: add bit_length method to int. 18 years ago
Mark Dickinson 1a707981c8 Issue #3439: add bit_length method to int and long. 18 years ago
Mark Dickinson 50b2b6eeac Issue 4497: silence compiler warnings on Windows. 18 years ago
Neal Norwitz 3ce5d9207e Closes release blocker #3627. 18 years ago
Georg Brandl 6aa2d1fec7 Merged revisions 65459,65472,65481,65518,65536,65581,65609,65637,65641,65644-65645 via svnmerge from 18 years ago
Mark Dickinson b646757e01 Issue #1481296: (again!) Make conversion of a float NaN to an int or 18 years ago
Neal Norwitz e7d8be80ba Security patches from Apple: prevent int overflow when allocating memory 18 years ago
Neal Norwitz 4f3be8a0a9 Security patches from Apple: prevent int overflow when allocating memory 18 years ago
Facundo Batista 6e6f59b1c9 Optimization to stop creating new small longs and use the 18 years ago
Robert Schuppenies fbe94c55ca Merged revisions 64842,64853,64856,64945 via svnmerge from 18 years ago
Robert Schuppenies 9be2ec109b Added additional __sizeof__ implementations and addressed comments made in 18 years ago
Martin v. Löwis 029656fb3b Issue #3236: Return small longs from PyLong_FromString. 18 years ago
Raymond Hettinger 9c437af4eb Revert 64424, 64438, and 64439. 18 years ago
Raymond Hettinger e3ae655edf Make bin() implementation parallel oct() and hex() so that int/long subclasses can override or so that other classes can support. 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
Martin v. Löwis 00709aaa3d Merged revisions 63856-63857,63859-63860 via svnmerge from 18 years ago
Georg Brandl 7a6de8b0f4 Some style nits. Also clarify in the docstrings what __sizeof__ does. 18 years ago
Robert Schuppenies 51df064767 Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes. 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 72b710a596 Renamed PyString to PyBytes 18 years ago
Christian Heimes 9c4756ea26 Renamed PyBytes to PyByteArray 18 years ago
Christian Heimes 593daf545b Renamed PyString to PyBytes 18 years ago
Christian Heimes dae2a8939d Merged revisions 62350-62355,62358-62359,62364-62365,62370,62372-62375,62378-62379,62381 via svnmerge from 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
Mark Dickinson 7ab6be216a PyLong_FromSsize_t was incorrect when sizeof(size_t) > sizeof(long); 18 years ago
Mark Dickinson 27a632510e Fix for possible signed overflow: the behaviour of -LONG_MIN is 18 years ago
Christian Heimes bbe741dd1b Merged revisions 61981,61984-61987,61992-61993,61997-62000 via svnmerge from 19 years ago
Neal Norwitz d183bdd6fb Revert r61969 which added casts to Py_CHARMASK to avoid compiler warnings. 19 years ago
Christian Heimes ba4af493a5 Merged revisions 61964-61979 via svnmerge from 19 years ago
Neal Norwitz 231346e23f Fix warnings about using char as an array subscript. This is not portable 19 years ago
Jeffrey Yasskin 5de250e823 Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster. 19 years ago
Eric Smith 9ff19b5434 Finished backporting PEP 3127, Integer Literal Support and Syntax. 19 years ago
Eric Smith a9f7d62480 Backport of PEP 3101, Advanced String Formatting, from py3k. 19 years ago
Eric Smith 5e527ebee1 Added PyNumber_ToBase and supporting routines _PyInt_Format and 19 years ago
Christian Heimes 48aa4b1584 Get the ref counting for static allocated longs right. 19 years ago
Christian Heimes dfc12edbca Fixed multiple reinitialization of the Python interpreter. The small int list in longobject.c has caused a seg fault during the third finalization. 19 years ago
Christian Heimes 7f39c9fcbb Backport of several functions from Python 3.0 to 2.6 including PyUnicode_FromString, PyUnicode_Format and PyLong_From/AsSsize_t. The functions are partly required for the backport of the bytearray type and _fileio module. They should also make it easier to port C to 3.0. 19 years ago
Facundo Batista 2336bddd5d Fix Issue #1769: Now int('- 1') or int('+ 1') is not allowed 19 years ago