summaryrefslogtreecommitdiff
path: root/Modules/arraymodule.c
AgeCommit message (Collapse)AuthorLines
2014-03-05Make the various iterators' "setstate" sliently and consistently clip theKristján Valur Jónsson-0/+2
index. This avoids the possibility of setting an iterator to an invalid state.
2013-02-26Issue #17223: array module: Fix a crasher when converting an array containingVictor Stinner-0/+2
invalid characters (outside range [U+0000; U+10ffff]) to Unicode: repr(array), str(array) and array.tounicode(). Patch written by Manuel Jacob.
2012-12-31Make indentation consistent and remove dead commented-out code.Eli Bendersky-7/+5
2012-12-10Code style fixup: No need for double ((parenthesis)) and use {} on an if else.Gregory P. Smith-4/+5
2012-12-10Code style fixup: No need for double ((parenthesis)) and use {} on an if else.Gregory P. Smith-4/+5
2012-10-06Issue #16096: Fix several occurrences of potential signed integer overflow. ↵Mark Dickinson-4/+8
Thanks Serhiy Storchaka.
2012-08-10Issue #15424: Add a __sizeof__ implementation for array objects.Meador Inge-0/+15
Patch by Ludwig Hähne.
2012-08-10Issue #15424: Add a __sizeof__ implementation for array objects.Meador Inge-0/+15
Patch by Ludwig Hähne.
2012-08-06Close #13072: Restore code before the PEP 393 for the array moduleVictor Stinner-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.
2012-04-05Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in ↵Antoine Pitrou-1/+1
the stable ABI.
2012-04-03Issue #14288: Serialization support for builtin iterators.Kristján Valur Jónsson-1/+29
2011-12-09Merge 3.2Florent Xicluna-1/+1
2011-12-09Fix docstring typo.Florent Xicluna-1/+1
2011-10-25Remove mention of narrow/wide builds and update array doc, add a test.Ezio Melotti-4/+1
2011-10-24Merge 3.2.Florent Xicluna-4/+4
2011-10-24Issue #13255: wrong docstrings in array module.Florent Xicluna-4/+4
2011-10-14Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis-4/+4
2011-10-10Use identifier API for PyObject_GetAttrString.Martin v. Löwis-3/+5
2011-10-09Add API for static strings, primarily good for identifiers.Martin v. Löwis-2/+5
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
2011-09-30Fix a compiler warningVictor Stinner-1/+1
2011-09-30Fix array.array('u') constructorVictor Stinner-6/+12
2011-09-30array module uses the new Unicode APIVictor Stinner-33/+30
* Use Py_UCS4* buffer instead of Py_UNICODE* * Use "I" or "L" format, instead of "u" format
2011-09-30array module stores the typecode in a char, instead of Py_UNICODEVictor Stinner-19/+16
2011-09-28Rename new macros to conform to naming rules (function macros have "Py" ↵Georg Brandl-1/+1
prefix, not "PY").
2011-09-28Implement PEP 393.Martin v. Löwis-4/+4
2011-09-25Issue #1621: Fix undefined behaviour from signed overflow in datetime module ↵Mark Dickinson-1/+1
hashes, array and list iterations, and get_integer (stringlib/string_format.h)
2011-09-20Issue #1172711: Add 'long long' support to the array module.Meador Inge-1/+78
Initial patch by Oren Tirosh and Hirokazu Yamamoto.
2011-08-10Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.Brian Curtin-4/+2
The macro was introduced in #12724.
2011-06-07Revert a reversed comparison order introduced in r70695.Brett Cannon-1/+1
2011-06-06Remove some extraneous parentheses and swap the comparison order toBrett Cannon-1/+1
prevent accidental assignment. Silences a warning from LLVM/clang 2.9.
2011-02-22Issue #8914: fix various warnings from the Clang static analyzer v254.Brett Cannon-1/+0
2011-01-11Issue #5109: array.array constructor will now use fast code whenAlexander Belopolsky-5/+15
initial data is provided in an array object with correct type.
2010-12-04#1569291: speed up array.repeat() by making only O(log n) memcpy() calls; ↵Georg Brandl-9/+17
the code follows unicode_repeat.
2010-12-03Merge branches/pep-0384.Martin v. Löwis-2/+2
2010-11-25Fix compilation warnings seen on Windows.Amaury Forgeot d'Arc-7/+7
'typecode' is always an ascii letter, there was no data lost.
2010-11-09Issue #10359: Use Py_UNICODE for the typecode in arrayVictor Stinner-7/+9
And don't create non constant array, invalid in ISO C.
2010-09-01Issue #8990: array.fromstring() and array.tostring() get renamed toAntoine Pitrou-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.
2010-08-06Issue #9526: Remove outdated casts to int that were preventing the array ↵Mark Dickinson-2/+2
module from working correctly with arrays > 2GB.
2010-05-09Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou-1851/+1851
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. ........
2010-02-14Merged revisions 78189 via svnmerge fromMark Dickinson-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. ........
2010-01-29Merged revisions 77821 via svnmerge fromMark Dickinson-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. ........
2009-10-26Silence gcc warning about possibly uninitialized variable 'converted_items'Mark Dickinson-0/+2
2009-07-17Use the proper autoconf macro for checking byte order.Alexandre Vassalotti-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.
2009-07-15Fix omission in a comment.Alexandre Vassalotti-1/+1
2009-07-15Issue #2389: Implement a portable mechanism for pickling array objects.Alexandre Vassalotti-49/+515
Reviewed by: Martin v. Löwis
2009-07-11#6430: remove mention of "w" array typecode.Georg Brandl-1/+0
2009-07-05Add the fix for issue 4509 to the mapping methods.Alexandre Vassalotti-0/+10
2009-07-05Fix array.extend and array.__iadd__ to handle the case where an arrayAlexandre Vassalotti-3/+5
is extended with itself. This bug is specific the py3k version of arraymodule.c
2009-07-05Issue 4509: Do not modify an array if we know the change would resultAlexandre Vassalotti-0/+8
in a failure due to exported buffers.
2009-04-03Py_BuildValue's 'c' code should use byte strings #5666Benjamin Peterson-2/+2