Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reuse Py_MIN and Py_MAX macros: remove duplicate MIN/MAX macros | Victor Stinner | 2013-06-04 | 1 | -9/+4 |
| | | | | multiprocessing.h: remove unused MIN and MAX macros | ||||
* | Close #17694: Add minimum length to _PyUnicodeWriter | Victor Stinner | 2013-04-17 | 1 | -1/+1 |
| | | | | | | | | | | | | * Add also min_char attribute to _PyUnicodeWriter structure (currently unused) * _PyUnicodeWriter_Init() has no more argument (except the writer itself): min_length and overallocate must be set explicitly * In error handlers, only enable overallocation if the replacement string is longer than 1 character * CJK decoders don't use overallocation anymore * Set min_length, instead of preallocating memory using _PyUnicodeWriter_Prepare(), in many decoders * _PyUnicode_DecodeUnicodeInternal() checks for integer overflow | ||||
* | Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵ | Antoine Pitrou | 2013-02-09 | 1 | -2/+2 |
|\ | | | | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag), mpdecimal (needs to build without Python.h). | ||||
| * | Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵ | Antoine Pitrou | 2013-02-09 | 1 | -2/+2 |
| |\ | | | | | | | | | | | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag), mpdecimal (needs to build without Python.h). | ||||
| | * | Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵ | Antoine Pitrou | 2013-02-09 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag). | ||||
| * | | Issue #15989: Fix several occurrences of integer overflow | Serhiy Storchaka | 2013-01-19 | 1 | -0/+18 |
| |\ \ | | |/ | | | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277. | ||||
| | * | Issue #15989: Fix several occurrences of integer overflow | Serhiy Storchaka | 2013-01-19 | 1 | -0/+18 |
| | | | | | | | | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277. | ||||
* | | | Issue #16772: in int(x, base), non-integer bases must have an __index__ method. | Mark Dickinson | 2013-01-27 | 1 | -5/+0 |
| | | | |||||
* | | | Issue #15989: Fix several occurrences of integer overflow | Serhiy Storchaka | 2013-01-14 | 1 | -0/+18 |
| | | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. | ||||
* | | | Issue #16761: Raise TypeError when int() called with base argument only. | Serhiy Storchaka | 2012-12-28 | 1 | -3/+9 |
|\ \ \ | |/ / | |||||
| * | | Issue #16761: Raise TypeError when int() called with base argument only. | Serhiy Storchaka | 2012-12-28 | 1 | -2/+8 |
| |\ \ | | |/ | |||||
| | * | Issue #16761: Raise TypeError when int() called with base argument only. | Serhiy Storchaka | 2012-12-28 | 1 | -2/+8 |
| | | | |||||
* | | | use more specific type | Benjamin Peterson | 2012-12-26 | 1 | -1/+1 |
| | | | |||||
* | | | Test for issue16772 and redoes the previous fix to accept __index__-aware | Gregory P. Smith | 2012-12-26 | 1 | -4/+3 |
| | | | | | | | | | | | | objects as the base by using PyNumber_AsSsize_t similar to round(). | ||||
* | | | Fixes issue #16772: int() constructor second argument (base) must be an int. | Gregory P. Smith | 2012-12-25 | 1 | -0/+5 |
| | | | | | | | | | | | | Consistent with the behavior in Python 2. | ||||
* | | | Issue 16280: Drop questionable special-casing of null pointer in ↵ | Mark Dickinson | 2012-10-18 | 1 | -6/+0 |
| | | | | | | | | | | | | PyLong_FromVoidPtr. | ||||
* | | | Issue #16277: merge fix from 3.3 | Mark Dickinson | 2012-10-18 | 1 | -0/+8 |
|\ \ \ | |/ / | |||||
| * | | Issue #16277: merge fix from 3.2 | Mark Dickinson | 2012-10-18 | 1 | -0/+8 |
| |\ \ | | |/ | |||||
| | * | Issue #16277: in PyLong_FromVoidPtr, add missing branch for sizeof(void*) <= ↵ | Mark Dickinson | 2012-10-18 | 1 | -0/+8 |
| | | | | | | | | | | | | sizeof(long). | ||||
* | | | Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unified | Christian Heimes | 2012-10-17 | 1 | -6/+2 |
| | | | | | | | | | | | | endianess detection and handling. | ||||
* | | | Issue #14783: Merge changes from 3.3. | Chris Jerdonek | 2012-10-07 | 1 | -6/+13 |
|\ \ \ | |/ / | |||||
| * | | Issue #14783: Merge changes from 3.2. | Chris Jerdonek | 2012-10-07 | 1 | -6/+13 |
| |\ \ | | |/ | |||||
| | * | Issue #14783: Improve int() docstring and also str(), range(), and slice(). | Chris Jerdonek | 2012-10-07 | 1 | -6/+13 |
| | | | | | | | | | | | | | | | | | | This commit rewrites the docstring for int() to incorporate the documentation changes made in issue #16036. It also switches the docstrings for int(), str(), range(), and slice() to use multi-line signatures. | ||||
* | | | Issue #16096: port fix from 3.3 | Mark Dickinson | 2012-10-06 | 1 | -3/+2 |
|\ \ \ | |/ / | |||||
| * | | Issue #16096: Fix signed overflow in Objects/longobject.c. Thanks Serhiy ↵ | Mark Dickinson | 2012-10-06 | 1 | -3/+2 |
| | | | | | | | | | | | | Storchaka. | ||||
* | | | long_to_decimal_string_internal() doesn't need to write the final NULL character | Victor Stinner | 2012-10-04 | 1 | -1/+0 |
|/ / | |||||
* | | Issue 15959: Merge from 3.2. | Mark Dickinson | 2012-09-20 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue 15959: Fix type mismatch for quick{_neg}_int_allocs. Thanks Serhiy ↵ | Mark Dickinson | 2012-09-20 | 1 | -1/+1 |
| | | | | | | | | Storchaka. | ||||
* | | Fix out of bounds read in long_new() for empty bytes with an explicit base. ↵ | Christian Heimes | 2012-09-12 | 1 | -2/+2 |
|\ \ | |/ | | | | | int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359 | ||||
| * | Fix out of bounds read in long_new() for empty bytes with an explicit base. ↵ | Christian Heimes | 2012-09-12 | 1 | -2/+2 |
| | | | | | | | | int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359 | ||||
* | | Fixed resource leak to scratch when _PyUnicodeWriter_Prepare fails | Christian Heimes | 2012-09-10 | 1 | -1/+3 |
| | | |||||
* | | Issue #14744: Fix compilation on Windows | Victor Stinner | 2012-05-29 | 1 | -2/+2 |
| | | |||||
* | | Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args ↵ | Victor Stinner | 2012-05-29 | 1 | -88/+219 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and str.format(args) * Formatting string, int, float and complex use the _PyUnicodeWriter API. It avoids a temporary buffer in most cases. * Add _PyUnicodeWriter_WriteStr() to restore the PyAccu optimization: just keep a reference to the string if the output is only composed of one string * Disable overallocation when formatting the last argument of str%args and str.format(args) * Overallocation allocates at least 100 characters: add min_length attribute to the _PyUnicodeWriter structure * Add new private functions: _PyUnicode_FastCopyCharacters(), _PyUnicode_FastFill() and _PyUnicode_FromASCII() The speed up is around 20% in average. | ||||
* | | long_to_decimal_string() and _PyLong_Format() check the consistency of newly | Victor Stinner | 2012-04-25 | 1 | -0/+2 |
| | | | | | | | | created strings using _PyUnicode_CheckConsistency() in debug mode | ||||
* | | Issue #14630: Merge fix from 3.2. | Mark Dickinson | 2012-04-20 | 1 | -3/+1 |
|\ \ | |/ | |||||
| * | Issue #14630: Fix an incorrect access of ob_digit[0] for a zero instance of ↵ | Mark Dickinson | 2012-04-20 | 1 | -3/+1 |
| | | | | | | | | an int subclass. | ||||
* | | Issue #14339: Improve speed of bin, oct and hex builtins. Patch by Serhiy ↵ | Mark Dickinson | 2012-04-20 | 1 | -26/+31 |
| | | | | | | | | Storchaka (with minor modifications). | ||||
* | | Issue #12965: Fix some inaccurate comments in Objects/longobject.c. Thanks ↵ | Mark Dickinson | 2011-10-23 | 1 | -15/+23 |
| | | | | | | | | Stefan Krah. | ||||
* | | Use the new Py_ARRAY_LENGTH macro | Victor Stinner | 2011-09-28 | 1 | -2/+1 |
| | | |||||
* | | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 1 | -44/+38 |
| | | |||||
* | | Merge fix for issue #12963. | Stefan Krah | 2011-09-12 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | Issue #12963: PyLong_AsSize_t() now returns (size_t)-1 in all error cases. | Stefan Krah | 2011-09-12 | 1 | -3/+3 |
| | | |||||
* | | Issue #12909: Make PyLong_As* functions consistent in their use of exceptions. | Nadeem Vawda | 2011-09-07 | 1 | -2/+10 |
| | | | | | | | | | | | | PyLong_AsDouble() and PyLong_AsUnsignedLongLong() now raise TypeError (rather than SystemError) when passed a non-integer argument, matching the behavior of all the other PyLong_As*() functions. | ||||
* | | Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED. | Brian Curtin | 2011-08-11 | 1 | -6/+3 |
|/ | | | | The macro was introduced in #12724. | ||||
* | #11565: Merge with 3.1. | Ezio Melotti | 2011-03-16 | 1 | -1/+1 |
|\ | |||||
| * | #11565: Fix several typos. Patch by Piotr Kasprzyk. | Ezio Melotti | 2011-03-16 | 1 | -2/+2 |
| | | |||||
* | | #11515: Merge with 3.1. | Ezio Melotti | 2011-03-15 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #11515: fix several typos. Patch by Piotr Kasprzyk. | Ezio Melotti | 2011-03-15 | 1 | -1/+1 |
| | | |||||
| * | Recorded merge of revisions 81032 via svnmerge from | Antoine Pitrou | 2010-05-09 | 1 | -3334/+3334 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ ................ | ||||
| * | Issue #8328: Silence Visual Studio warnings. | Stefan Krah | 2010-04-07 | 1 | -2/+2 |
| | |