366 Commits (fa4e68d42582a0fb61baac98ac10b3fbf43f8751)

Author SHA1 Message Date
Serhiy Storchaka c836a28cc1 Issue #17576: Removed deprecation warnings added in changeset 618cca51a27e. 12 years ago
Serhiy Storchaka 31a655411a Issue #17576: Deprecation warning emitted now when __int__() or __index__() 12 years ago
Christian Heimes d3afe781b1 Silence expression result unused warnings with clang. 12 years ago
Serhiy Storchaka c679227e31 Issue #1772673: The type of `char*` arguments now changed to `const char*`. 12 years ago
Tim Peters 81a93159d7 Issue #19171: speed some cases of 3-argument long pow(). 12 years ago
Serhiy Storchaka 9594942716 Issue #18783: Removed existing mentions of Python long type in docstrings, 13 years ago
Antoine Pitrou 9ed5f27266 Issue #18722: Remove uses of the "register" keyword in C code. 13 years ago
Serhiy Storchaka f6d0aeeadc Issue #16741: Fix an error reporting in int(). 13 years ago
Mark Dickinson 02515f7a3a Minor consistency fixes for some longobject.c exception messages: 13 years ago
Victor Stinner 1c8f059019 Issue #18520: Add a new PyStructSequence_InitType2() function, same than 13 years ago
Victor Stinner 08a80b11ad longobject.c: add an assertion to ensure that MEDIUM_VALUE() is only called on 13 years ago
Victor Stinner 8aed6f1c7d Issue #18408: Rewrite NEGATE() macro in longobject.c to handle PyLong_FromLong() failure 13 years ago
Victor Stinner 640c35ce13 Reuse Py_MIN and Py_MAX macros: remove duplicate MIN/MAX macros 13 years ago
Victor Stinner 8f674ccd64 Close #17694: Add minimum length to _PyUnicodeWriter 13 years ago
Antoine Pitrou 4de7457009 Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter. 13 years ago
Mark Dickinson 07c7136524 Issue #16772: in int(x, base), non-integer bases must have an __index__ method. 13 years ago
Serhiy Storchaka 74f49ab28b Issue #15989: Fix several occurrences of integer overflow 13 years ago
Serhiy Storchaka 441d30fac7 Issue #15989: Fix several occurrences of integer overflow 13 years ago
Serhiy Storchaka 7898043868 Issue #15989: Fix several occurrences of integer overflow 13 years ago
Serhiy Storchaka 0b386d5247 Issue #16761: Raise TypeError when int() called with base argument only. 13 years ago
Serhiy Storchaka cf095f8e0f Issue #16761: Raise TypeError when int() or long() called with base argument only. 13 years ago
Benjamin Peterson 513762fe9c use more specific type 13 years ago
Gregory P. Smith a689e524e7 Test for issue16772 and redoes the previous fix to accept __index__-aware 13 years ago
Gregory P. Smith 4fbbf8c0a3 Fixes issue #16772: int() constructor second argument (base) must be an int. 13 years ago
Mark Dickinson e453e4c007 Issue 16280: Drop questionable special-casing of null pointer in PyLong_FromVoidPtr. 13 years ago
Mark Dickinson 91044799f7 Issue #16277: in PyLong_FromVoidPtr, add missing branch for sizeof(void*) <= sizeof(long). 13 years ago
Christian Heimes 743e0cd6b5 Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unified 13 years ago
Chris Jerdonek ad4b000179 Issue #14783: Backport changes from 3.2. 13 years ago
Chris Jerdonek 83fe2e1c22 Issue #14783: Improve int() docstring and also str(), range(), and slice(). 13 years ago
Mark Dickinson fc9adb62fb Issue #16096: Fix signed overflow in Objects/longobject.c. Thanks Serhiy Storchaka. 13 years ago
Victor Stinner 9cc98c93a7 long_to_decimal_string_internal() doesn't need to write the final NULL character 13 years ago
Mark Dickinson c286e58044 Issue 15959: Fix type mismatch for quick{_neg}_int_allocs. Thanks Serhiy Storchaka. 14 years ago
Christian Heimes 79b97ee2ab Fix out of bounds read in long_new() for empty bytes with an explicit base. int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359 14 years ago
Christian Heimes 110ac16b9f Fixed resource leak to scratch when _PyUnicodeWriter_Prepare fails 14 years ago
Victor Stinner e577ab38ea Issue #14744: Fix compilation on Windows 14 years ago
Victor Stinner d3f0882dfb Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args and str.format(args) 14 years ago
Victor Stinner 3065093bb3 long_to_decimal_string() and _PyLong_Format() check the consistency of newly 14 years ago
Mark Dickinson bcc17eefd2 Issue #14630: Fix an incorrect access of ob_digit[0] for a zero instance of an int subclass. 14 years ago
Mark Dickinson e28465482c Issue #14339: Improve speed of bin, oct and hex builtins. Patch by Serhiy Storchaka (with minor modifications). 14 years ago
Mark Dickinson 8d48b43ea9 Issue #12965: Fix some inaccurate comments in Objects/longobject.c. Thanks Stefan Krah. 14 years ago
Victor Stinner 639418812f Use the new Py_ARRAY_LENGTH macro 15 years ago
Martin v. Löwis d63a3b8beb Implement PEP 393. 15 years ago
Stefan Krah b77c6c65c0 Issue #12963: PyLong_AsSize_t() now returns (size_t)-1 in all error cases. 15 years ago
Nadeem Vawda 3d5881ec2b Issue #12909: Make PyLong_As* functions consistent in their use of exceptions. 15 years ago
Brian Curtin dfc80e3d97 Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED. 15 years ago
Ezio Melotti c2077b0d9b #11565: Fix several typos. Patch by Piotr Kasprzyk. 15 years ago
Ezio Melotti 13925008dc #11565: Fix several typos. Patch by Piotr Kasprzyk. 15 years ago
Ezio Melotti 24b07bcba3 #11515: fix several typos. Patch by Piotr Kasprzyk. 15 years ago
Ezio Melotti 42da663e6f #11515: fix several typos. Patch by Piotr Kasprzyk. 15 years ago
Mark Dickinson c9fb3c6417 Fix indentation in Objects/longobject.c 15 years ago