summaryrefslogtreecommitdiffstats
path: root/Modules/arraymodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18722: Remove uses of the "register" keyword in C code.Antoine Pitrou2013-08-131-3/+3
|
* Issue #18408: Fix array_tolist(), handle PyList_SetItem() failureVictor Stinner2013-07-171-6/+9
|
* Issue #18408: Fix array_index(), handle getarrayitem() failureVictor Stinner2013-07-171-7/+26
|
* (Merge 3.3) Issue #17223: array module: Fix a crasher when converting an arrayVictor Stinner2013-02-251-0/+2
|\ | | | | | | | | containing invalid characters (outside range [U+0000; U+10ffff]) to Unicode: repr(array), str(array) and array.tounicode(). Patch written by Manuel Jacob.
| * Issue #17223: array module: Fix a crasher when converting an array containingVictor Stinner2013-02-251-0/+2
| | | | | | | | | | invalid characters (outside range [U+0000; U+10ffff]) to Unicode: repr(array), str(array) and array.tounicode(). Patch written by Manuel Jacob.
* | Make indentation consistent and remove dead commented-out code.Eli Bendersky2012-12-311-7/+5
|\ \ | |/
| * Make indentation consistent and remove dead commented-out code.Eli Bendersky2012-12-311-7/+5
| |
* | Code style fixup: No need for double ((parenthesis)) and use {} on an if else.Gregory P. Smith2012-12-111-4/+5
|\ \ | |/
| * Code style fixup: No need for double ((parenthesis)) and use {} on an if else.Gregory P. Smith2012-12-111-4/+5
| |\
| | * Code style fixup: No need for double ((parenthesis)) and use {} on an if else.Gregory P. Smith2012-12-111-4/+5
| | |
* | | Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unifiedChristian Heimes2012-10-171-5/+2
|/ / | | | | | | endianess detection and handling.
* | Issue #16096: Fix several occurrences of potential signed integer overflow. ↵Mark Dickinson2012-10-061-4/+8
| | | | | | | | Thanks Serhiy Storchaka.
* | Issue #15424: Add a __sizeof__ implementation for array objects.Meador Inge2012-08-111-0/+15
|\ \ | |/ | | | | Patch by Ludwig Hähne.
| * Issue #15424: Add a __sizeof__ implementation for array objects.Meador Inge2012-08-111-0/+15
| | | | | | | | Patch by Ludwig Hähne.
* | Close #13072: Restore code before the PEP 393 for the array moduleVictor Stinner2012-08-051-38/+48
| | | | | | | | | | | | | | | | 'u' format of the array module uses again Py_UNICODE type for backward compatibility with Python 3.2. The only change from Python 3.2 is that PyUnicode_AsUnicode() result is now checked for NULL value.
* | Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in ↵Antoine Pitrou2012-04-041-1/+1
| | | | | | | | the stable ABI.
* | Issue #14288: Serialization support for builtin iterators.Kristján Valur Jónsson2012-04-031-1/+29
| |
* | Merge 3.2Florent Xicluna2011-12-091-1/+1
|\ \ | |/
| * Fix docstring typo.Florent Xicluna2011-12-091-1/+1
| |
* | Remove mention of narrow/wide builds and update array doc, add a test.Ezio Melotti2011-10-251-4/+1
| |
* | Merge 3.2.Florent Xicluna2011-10-241-4/+4
|\ \ | |/
| * Issue #13255: wrong docstrings in array module.Florent Xicluna2011-10-241-4/+4
| |
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-4/+4
| |
* | Use identifier API for PyObject_GetAttrString.Martin v. Löwis2011-10-101-3/+5
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-2/+5
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Fix a compiler warningVictor Stinner2011-09-291-1/+1
| |
* | Fix array.array('u') constructorVictor Stinner2011-09-291-6/+12
| |
* | array module uses the new Unicode APIVictor Stinner2011-09-291-33/+30
| | | | | | | | | | * Use Py_UCS4* buffer instead of Py_UNICODE* * Use "I" or "L" format, instead of "u" format
* | array module stores the typecode in a char, instead of Py_UNICODEVictor Stinner2011-09-291-19/+16
| |
* | Rename new macros to conform to naming rules (function macros have "Py" ↵Georg Brandl2011-09-281-1/+1
| | | | | | | | prefix, not "PY").
* | Implement PEP 393.Martin v. Löwis2011-09-281-4/+4
| |
* | Issue #1621: Fix undefined behaviour from signed overflow in datetime module ↵Mark Dickinson2011-09-251-1/+1
| | | | | | | | hashes, array and list iterations, and get_integer (stringlib/string_format.h)
* | Issue #1172711: Add 'long long' support to the array module.Meador Inge2011-09-211-1/+78
| | | | | | | | Initial patch by Oren Tirosh and Hirokazu Yamamoto.
* | Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.Brian Curtin2011-08-111-4/+2
| | | | | | | | The macro was introduced in #12724.
* | Revert a reversed comparison order introduced in r70695.Brett Cannon2011-06-081-1/+1
| |
* | Remove some extraneous parentheses and swap the comparison order toBrett Cannon2011-06-071-1/+1
| | | | | | | | | | | | prevent accidental assignment. Silences a warning from LLVM/clang 2.9.
* | Issue #8914: fix various warnings from the Clang static analyzer v254.Brett Cannon2011-02-221-1/+0
|/
* Issue #5109: array.array constructor will now use fast code whenAlexander Belopolsky2011-01-111-5/+15
| | | | initial data is provided in an array object with correct type.
* #1569291: speed up array.repeat() by making only O(log n) memcpy() calls; ↵Georg Brandl2010-12-041-9/+17
| | | | the code follows unicode_repeat.
* Merge branches/pep-0384.Martin v. Löwis2010-12-031-2/+2
|
* Fix compilation warnings seen on Windows.Amaury Forgeot d'Arc2010-11-251-7/+7
| | | | 'typecode' is always an ascii letter, there was no data lost.
* Issue #10359: Use Py_UNICODE for the typecode in arrayVictor Stinner2010-11-091-7/+9
| | | | And don't create non constant array, invalid in ISO C.
* Issue #8990: array.fromstring() and array.tostring() get renamed toAntoine Pitrou2010-09-011-17/+77
| | | | | | frombytes() and tobytes(), respectively, to avoid confusion. Furthermore, array.frombytes(), array.extend() as well as the array.array() constructor now accept bytearray objects. Patch by Thomas Jollans.
* Issue #9526: Remove outdated casts to int that were preventing the array ↵Mark Dickinson2010-08-061-2/+2
| | | | module from working correctly with arrays > 2GB.
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-1923/+1923
| | | | | | | | | | 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. ........
* Merged revisions 78189 via svnmerge fromMark Dickinson2010-02-141-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78189 | mark.dickinson | 2010-02-14 13:40:30 +0000 (Sun, 14 Feb 2010) | 1 line Silence more 'comparison between signed and unsigned' warnings. ........
* Merged revisions 77821 via svnmerge fromMark Dickinson2010-01-291-2/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77821 | mark.dickinson | 2010-01-29 17:11:39 +0000 (Fri, 29 Jan 2010) | 3 lines Issue #7788: Fix a crash produced by deleting a list slice with huge step value. Patch by Marcin Bachry. ........
* Silence gcc warning about possibly uninitialized variable 'converted_items'Mark Dickinson2009-10-261-0/+2
|
* Use the proper autoconf macro for checking byte order.Alexandre Vassalotti2009-07-171-1/+1
| | | | | | | The BYTEORDER_IS_BIG_ENDIAN macro is defined Objects/unicodeobject.c, thus the code was always emitting the little-endian machine format codes. This should fix the failure seen on the SPARC buildbot.
* Fix omission in a comment.Alexandre Vassalotti2009-07-151-1/+1
|