summaryrefslogtreecommitdiff
path: root/Modules/arraymodule.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-101-0/+15
|\ | | | | | | Patch by Ludwig Hähne.
| * Issue #15424: Add a __sizeof__ implementation for array objects.Meador Inge2012-08-101-0/+15
| | | | | | | | Patch by Ludwig Hähne.
* | Close #13072: Restore code before the PEP 393 for the array moduleVictor Stinner2012-08-061-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-051-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-301-1/+1
| |
* | Fix array.array('u') constructorVictor Stinner2011-09-301-6/+12
| |
* | array module uses the new Unicode APIVictor Stinner2011-09-301-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-301-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-201-1/+78
| | | | | | | | Initial patch by Oren Tirosh and Hirokazu Yamamoto.
* | Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.Brian Curtin2011-08-101-4/+2
| | | | | | | | The macro was introduced in #12724.
* | Revert a reversed comparison order introduced in r70695.Brett Cannon2011-06-071-1/+1
| |
* | Remove some extraneous parentheses and swap the comparison order toBrett Cannon2011-06-061-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
|
* Issue #2389: Implement a portable mechanism for pickling array objects.Alexandre Vassalotti2009-07-151-49/+515
| | | | Reviewed by: Martin v. Löwis
* #6430: remove mention of "w" array typecode.Georg Brandl2009-07-111-1/+0
|
* Add the fix for issue 4509 to the mapping methods.Alexandre Vassalotti2009-07-051-0/+10
|
* Fix array.extend and array.__iadd__ to handle the case where an arrayAlexandre Vassalotti2009-07-051-3/+5
| | | | | | is extended with itself. This bug is specific the py3k version of arraymodule.c
* Issue 4509: Do not modify an array if we know the change would resultAlexandre Vassalotti2009-07-051-0/+8
| | | | in a failure due to exported buffers.
* Py_BuildValue's 'c' code should use byte strings #5666Benjamin Peterson2009-04-031-2/+2
|
* Issue #5334: array.fromfile() failed to insert values when EOFError was raised.Hirokazu Yamamoto2009-03-061-6/+11
| | | | Reviewed by Benjamin Peterson.
* Merged revisions 69846 via svnmerge fromMark Dickinson2009-02-211-6/+6
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69846 | mark.dickinson | 2009-02-21 20:27:01 +0000 (Sat, 21 Feb 2009) | 2 lines Issue #5341: Fix a variety of spelling errors. ........
* Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson2009-02-021-2/+2
| | | | | type of tp_compare in a separate commit, for ease of reversion should things go wrong.
* Issue #4583: crash after resizing an array.array which has buffer exports.Antoine Pitrou2008-12-181-96/+46
|